Sublime Text is a great text edit!
But it seems hard to config the C++ environment…
and the color is not so pretty for it (so many white color)
I wonder how to set up all of the C++ environment?
How to set up a C++ enviroment in ST2?
C++ support is built in to sublime. It should automatically detect C++/C via you file extension .cpp/.h . You can manually turn it on by typing Ctrl +shift+P(bring up command entry) then typing set syntax:C++. But again that isn’t necessary if your files are named correctly.
Also to make it look good i would recommend setting your theme and color scheme. I rather like the combo of soda dark and monkai. To turn on monokai go to preferences->User settings and add:
{
“color_scheme”: “Packages/Color Scheme - Default/Monokai.tmTheme”
}
then save. To install soda first install package control via the instructions on this page sublime.wbond.net/installation. Now you should have package control so type ctrl+shift+p again and type install package. then type soda and install the theme. finally add to your user settings to turn it on.
{
“theme”: “Soda Dark.sublime-theme”,
“color_scheme”: “Packages/Color Scheme - Default/Monokai.tmTheme”
}
I recommend looking through the popular packages from package control there are are a lot of cool add ons people have made.
I am a fan of All Autocomplete, SideBarEnhancements, and bracket highlighter.