API ReferenceEditor
public static abstract sealed class Editor.CodeEditor
For opening source code files in whatever code editor the user has selected.
Methods
Showing 7 methods
public static string AddonSolutionPath()
public static bool CanOpenFile(string path)
Returns true if the file exists and can be opened by the current code editor.
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
public static void OpenAddon(Sandbox.Project addon)
public static void OpenSolution()
Open the solution of all s&box projects
No results match this filter.
Properties
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.
No results match this filter.
Metadata
| Field | Value |
|---|---|
| Namespace | Editor |
| Type | class |
| Assembly | Sandbox.Tools |
| Doc ID | T:Editor.CodeEditor |