Sublime Text integration for the Unity game engine.
- Unity "Preferences/External Tools" menu integration.
- Automatic generation of the
sln
file andcsproj
files per assembly. - Automatic generation of the
sublime-project
with default excluded file/folders for meta files, library folder etc. - Opens correct line/column.
- Context menu "Open C# Project" works as intended with Sublime Text now (opens the auto-generated .sublime-project file).
- Syncs correctly.
- Open Unity package manager.
- Click the
+
button on the top left of the package manager window. - Select the option "Add package from git URL".
- Copy and paste the url of this repository
https://github.com/ssoher/com.sarpersoher.ide.sublimetext.git
and click the Add button. - Once the package is downloaded and added to your project, open the Edit->Preferences->External Tools area. From the External Script Editor dropdown, if it's not already discovered correctly, select Browse and find your
sublime_text.exe
(Sublime Text.app
if you are on macOS). Your sublime-project file, csproj files and the sln file will be created automatically. There is also aRegenerate project files
button to refresh solution related files at will.
Assets->Open C# Project
opens the asssociated Sublime Text projects (sublime-project file created automatically at the root of your Unity project).- Double clicking any script file opens the script in the active Sublime Text instance.
- Console messages and stack traces open the associated script at the correct line & column.
It is recommended that you install the LSP and LSP-Omnisharp package for your installation of Sublime Text for ide-like support for C# projects. You should also install the "LSP-file-watcher-chokidar" package so that LSP-OmniSharp (or any other language server) receives file system change events and index the newly created files. Without this, the new files you create won't be indexed unless you restart the Omnisharp server.