I don't program in C#, so I can't speak from personal experience, but a quick Google search turned up the csharp-tmbundle
, a language definition for TextMate that should also work for Sublime Text. Go to your Packages
folder on the command line (%APPDATA%\Sublime Text X\Packages
where X
is either 2
or 3
) and run
git clone https://github.com/wintermi/csharp-tmbundle.git C#
and you should now have a C#
option in the View -> Syntax
menu, as well as the syntax menu accessible via the far right option in the status bar. For determining which scopes are currently active under your cursor, I highly recommend the ScopeAlways
plugin available via Package Control.
Good luck!