OK so we are at the last blog post in the sublime series. I have I hope saved the best one for last. One of the largest questions I have received during this series is how do I get intelisense and that R# is awesome because it supports things like goto definition and rename…
In this post we will add all of these features to sublime. There is a great project out there called OmniSharp that supports most of them (and in the future can support many many more!). Let’s get going then and add our sublime support.
https://github.com/moonrabbit/OmniSharpSublime is the project
So to install:
goto your packages directory (linux here so it may be different in windows or mac, just look in packages in sublime to find the folder)
git clone email@example.com:moonrabbit/OmniSharpSublime.git cs OmniSharpSublime git submodule update --init
Now you have gotten all the needed files. The next thing we will need to do is build OmniSharp
Now edit your project file for sublime and add at the root level
Remember the path is relative from your project file! restart sublime if its running. Try typing out variable names and you will see you have intellisense. If you hit a . you will notice that it does not come up by default the auto complete keystroke is alt + / you can remap this to ctrl+space if you want by editing your keymap in sublime.
Want to go to definition of a method? Try f12 by default (again can be remapped its up to you!)
In the next post we will recap everything that we have done so far!