CodeEditorclass

For opening source code files in whatever code editor the user has selected.

objectCodeEditor
Namespace
Editor
Assembly
Sandbox.Tools
Declaration
public static abstract sealed class Editor.CodeEditor

Methods7

Showing 7 methods

public static string AddonSolutionPath()PUBLICSTATIC

Returns:string

public static bool CanOpenFile(string path)PUBLICSTATIC

Returns true if the file exists and can be opened by the current code editor.

ParameterTypeDescription
pathstring
Returns:bool

public static string FindSolutionFromPath(string path)PUBLICSTATIC

Finds a .sln this path belongs to, this is pretty much entirely for internal usage to open engine slns

ParameterTypeDescription
pathstring
Returns:string

public static void OpenAddon(Sandbox.Project addon)PUBLICSTATIC

ParameterTypeDescription
addonProject
Returns:void

public static void OpenSolution()PUBLICSTATIC

Open the solution of all s&box projects

Returns:void

Properties2

Showing 2 properties

public static string Editor.CodeEditor.Title { get; set; }PUBLICSTATICGETSET

Friendly name for our current code editor.

Returns:string

On this page