This package adds some useful snippets for Sublime Text for C++11. It matches the following style:
if(/* condition */) {
/* code */
}
The easiest way to install the C++ Snippets is by using Package Control. Installing it is documented here.
- Open Package Control (or hit Ctrl+Shift+P or Cmd+Shift+P)
- Type install and hit enter
- Type C++ Snippets and hit enter again
You can manually install the package by using Git.
- Navigate to Sublime’s Packages directory
- Run
git clone https://github.com/Rapptz/cpp-sublime-snippet.git
To find out where the Packages directory is, you can go to Preferences and Browse packages…. This will open the directory in your file explorer.
If you don’t have Package Control or Git, you can also download the package. However you really should be using Package Control, because the process is simpler.
- Open https://github.com/Rapptz/cpp-sublime-snippet in your browser
- On the right hand side there is a Download ZIP button – click it
- Go to Preferences and Browse packages… which opens the Packages directory
- Extract the archive inside the Packages directory
Documentation can be found in the reference.md file.
The overall collection of snippets is licensed under the MIT License but the individual snippets themselves are licensed under CC0.