OmnisharpSublime is a plugin for ST3 to provide a C# development environment. It communicates with omnisharp-roslyn by nosami for IDE functions.
It works on:
assigment is redundant
Fix Code Issue
Using
StatementsConvert LINQ query to Fluent Syntax
csproj
OmniSharp
Move to ST3 plugin directory in console.
cd {path to ST3 plugin directory}/Packages
Clone repository.
git clone https://github.com/OmniSharp/omnisharp-sublime.git OmniSharp
Move to plugin directory, update submodule and build.
Windows
cd OmniSharp git submodule update --init --recursive build.cmd
Linux Or Mac OSX
cd OmniSharp git submodule update --init --recursive ./build.sh
The server will automatically find the the solution file from the folder you have opened in Sublime. If you have multiple solutions you have to specify the solution file you wish to use in a sublime-project
.
Go to File -> Open
and select the folder with your solution in it.
Go to Project -> Save Project As
and save a YOURPROJECTNAME.sublime-project
in the same location as your *.sln
Open your YOURPROJECTNAME.sublime-project
file that should now appear in the sidebar on the left
Enter the location to the *.sln
file like below
{
"folders":
[
{
"follow_symlinks": true,
"path": "."
}
],
"solution_file": "./testconsoleprj.sln"
}
Once the YOURPROJECT.sublime-project
is set up and saved, follow the below:
YOURPROJECTNAME.sublime-project
)Project -> Open Project
, and select your YOURPROJECT.sublime-project
fileCreate C# settings file as shown in this picture
Paste the below in. This will launch intellisense on . and < symbols
{
"auto_complete": true,
"auto_complete_selector": "source - comment",
"auto_complete_triggers": [ {"selector": "source.cs", "characters": ".<"} ],
}