Documentation
¶
Overview ¶
Package editorlocator finds installed code editors and IDEs and builds the command line to open a folder, a solution or a file at a line in one.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FileArgs ¶
FileArgs is the arguments that open a file in program at a line and column, in the form that program takes.
func ProjectArgs ¶
ProjectArgs is the arguments that open a project in program: the VS Code family works on folders, and the rest open the solution when there is one.
func SolutionIn ¶
SolutionIn is the folder's one solution file, or "" when it holds none or a choice of several.
Types ¶
type Editor ¶
type Editor struct {
Name string `json:"name"`
Program string `json:"program"`
Kind Kind `json:"kind"`
}
Editor is one installed program a project can open in; each installed version is its own.
type Kind ¶
type Kind int
Kind is the family a program belongs to, which decides what it is given to open.
const ( // Other is a program no family below claims: it is given a path and told nothing else. Other Kind = iota // VSCodeFamily opens a folder, and a file at a line and column. VSCodeFamily // JetBrains opens a solution, and a file at a line. JetBrains // VisualStudio opens a solution, and a file without a line. VisualStudio )
The families KindOf tells apart.