s&
newspaperAbout
infoAbout s&box newspaperLatest News published_with_changesChanges mapRoadmap monitoringMetrics
gamesGames
sports_esportsBrowse Games rocketDiscover Games
business_centerWorkshop
sports_esportsGames landscapeMaps chairModels textureMaterials apparelClothing constructionMore..
forumForum docsDocs
docsDocumentation dashboardApi Reference schoolTutorials
inputLog in with Steam chevron_leftChange Language
简体中文EnglishРусскийEspañolPortuguês-BrasilDeutsch日本語FrançaisPolskiTürkçe한국어PirateItalianoไทย繁體中文УкраїнськаČeštinaNederlandsMagyarDanskSuomiSvenskaNorskΕλληνικάRomânăБългарскиTiếng ViệtBahasa IndonesiaEspañol-Latinoaméricaالعربية
Api
Editor Classes
CodeEditor
chevron_left Editor Classes
class
CodeEditor

Static Properties

data_objectCurrentdata_objectTitle

Static Methods

functionsAddonSolutionPathfunctionsCanOpenFilefunctionsFindSolutionFromPathfunctionsOpenAddonfunctionsOpenFilefunctionsOpenSolution
CodeEditor
For opening source code files in whatever code editor the user has selected.
class Editor .
staticsealedabstractSandbox.Tools

data_object Static Properties 2

Current
ICodeEditor
The current code editor we're using.
Title
string
Friendly name for our current code editor.

functions Static Methods 6

AddonSolutionPath ()
string
CanOpenFile (path)
bool
Returns true if the file exists and can be opened by the current code editor.
FindSolutionFromPath (path)
string
Finds a .sln this path belongs to, this is pretty much entirely for internal usage to open engine slns
OpenAddon (addon)
OpenFile (location)
OpenSolution ()
Open the solution of all s&box projects
people
Log in to reply
You can't reply if you're not logged in. That would be crazy.
  • News
  • Docs
  • Metrics
  • FAQ
  • Forum
  • Discord
  • Twitter