ICodeEditorclass

Interface for editors to open code files. Any class that implements this interface is automatically added to the list. An editor is only enabled if `Editor.ICodeEditor.IsInstalled` returns true. Decorate your implementation with a `TitleAttribute`.

objectICodeEditor
Namespace
Editor
Assembly
Sandbox.Tools
Declaration
public abstract interface Editor.ICodeEditor

Methods4

Showing 4 methods

public virtual bool IsInstalled()PUBLICVIRTUAL

Whether or not this editor is installed.

Returns:bool

public virtual void OpenAddon(Sandbox.Project addon)PUBLICVIRTUAL

Open given addon in the editor.

ParameterTypeDescription
addonProject
Returns:void

public virtual void OpenFile(string path, System.Nullable`1<int> line = null, System.Nullable`1<int> column = null)PUBLICVIRTUAL

ParameterTypeDescription
pathstring
line = nullNullable<int>
column = nullNullable<int>
Returns:void

public virtual void OpenSolution()PUBLICVIRTUAL

Open the solution of all sandbox projects

Returns:void

On this page