API ReferenceEditor
CodeEditorclass
For opening source code files in whatever code editor the user has selected.
object→CodeEditor
Methods7
Showing 7 methods
public static string AddonSolutionPath()
Returns:
string—public static bool CanOpenFile(string path)
Returns true if the file exists and can be opened by the current code editor.
| Parameter | Type | Description |
|---|---|---|
| path | string | — |
Returns:
bool—public static string FindSolutionFromPath(string path)
Finds a .sln this path belongs to, this is pretty much entirely for internal usage to open engine slns
| Parameter | Type | Description |
|---|---|---|
| path | string | — |
Returns:
string—public static void OpenAddon(Sandbox.Project addon)
| Parameter | Type | Description |
|---|---|---|
| addon | Project | — |
Returns:
void—public static void OpenSolution()
Open the solution of all s&box projects
Returns:
void—No results match this filter.
Properties2
Showing 2 properties
public static Editor.ICodeEditor Editor.CodeEditor.Current { get; set; }
The current code editor we're using.
public static string Editor.CodeEditor.Title { get; set; }
Friendly name for our current code editor.
Returns:
string—No results match this filter.