OmniSharp
C# IDE Plugin for Sublime Text 3
Details
Installs
- Total 62K
- Win 41K
- Mac 15K
- Linux 7K
Nov 21 | Nov 20 | Nov 19 | Nov 18 | Nov 17 | Nov 16 | Nov 15 | Nov 14 | Nov 13 | Nov 12 | Nov 11 | Nov 10 | Nov 9 | Nov 8 | Nov 7 | Nov 6 | Nov 5 | Nov 4 | Nov 3 | Nov 2 | Nov 1 | Oct 31 | Oct 30 | Oct 29 | Oct 28 | Oct 27 | Oct 26 | Oct 25 | Oct 24 | Oct 23 | Oct 22 | Oct 21 | Oct 20 | Oct 19 | Oct 18 | Oct 17 | Oct 16 | Oct 15 | Oct 14 | Oct 13 | Oct 12 | Oct 11 | Oct 10 | Oct 9 | Oct 8 | Oct 7 | |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Windows | 1 | 3 | 0 | 3 | 4 | 3 | 4 | 0 | 0 | 6 | 4 | 1 | 1 | 2 | 3 | 4 | 2 | 4 | 3 | 2 | 4 | 2 | 8 | 5 | 3 | 4 | 0 | 4 | 2 | 2 | 5 | 4 | 0 | 4 | 2 | 2 | 10 | 2 | 2 | 2 | 3 | 3 | 5 | 2 | 5 | 0 |
Mac | 0 | 0 | 1 | 3 | 0 | 1 | 2 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 1 | 0 | 2 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 1 | 2 | 1 | 0 | 0 | 0 | 2 | 1 | 0 | 2 | 2 | 1 | 1 | 2 | 1 |
Linux | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 3 | 0 | 1 | 1 | 0 | 4 | 0 | 1 | 0 | 0 | 2 | 0 | 0 | 1 | 1 | 2 | 0 | 0 | 1 | 2 | 0 | 1 | 0 | 1 | 1 | 4 | 2 | 0 | 2 | 1 | 0 | 2 | 2 |
Readme
- Source
- raw.githubusercontent.com
OmniSharpSublime for ST3
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: 1. Mac OSX 2. Linux 3. Windows
Features
- Auto OmniSharpServer running
- Asynchronous communication with OmniSharpServer (Never freeze!)
- Auto Completion
- Goto definition
- Rename
- Goto implementation
- Syntax/Semantic error highlighting
- Displays possible override methods
- Find Usages
- Format Document
- Displays code issues such as
assigment is redundant
- Fix code issues - put cursor on highlighted issue and select
Fix Code Issue
- Remove Unused, Add Missing and Sort
Using
Statements - Code Actions eg.
Convert LINQ query to Fluent Syntax
- Add File To Project
- Remove File from Project (via sidebar and context menu)
- Add New C# Class & Interface (via sidebar and context menu) via File Templates which also adds to
csproj
- Type Lookup with Documentation
- Hide/Show Info Panel
- Reload Solution
Linux Requirements
- mono
- msbuild-stable
Windows Requirements
- Microsoft Build Tools 2015 (must be added to PATH)
Build Requirements
- dotnet core sdk
Installation
- Using Package Control, install the package called
OmniSharp
Building From Source
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
Project Setting
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 aYOURPROJECTNAME.sublime-project
in the same location as your*.sln
Open your
YOURPROJECTNAME.sublime-project
file that should now appear in the sidebar on the leftEnter the location to the
*.sln
file like below
Example of a sublime-project
{
"folders":
[
{
"follow_symlinks": true,
"path": "."
}
],
"solution_file": "./testconsoleprj.sln"
}
Once the YOURPROJECT.sublime-project
is set up and saved, follow the below:
- Close Sublime (YMMV but this seems to be the best way to open the
YOURPROJECTNAME.sublime-project
) - Open Sublime
- Click
Project -> Open Project
, and select yourYOURPROJECT.sublime-project
file
C# language-specific settings
Create 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": ".<"} ],
}