C++ Snippets
C++11 Sublime Text Snippets
Details
Installs
- Total 72K
- Win 41K
- Mac 9K
- Linux 22K
Sep 30 | Sep 29 | Sep 28 | Sep 27 | Sep 26 | Sep 25 | Sep 24 | Sep 23 | Sep 22 | Sep 21 | Sep 20 | Sep 19 | Sep 18 | Sep 17 | Sep 16 | Sep 15 | Sep 14 | Sep 13 | Sep 12 | Sep 11 | Sep 10 | Sep 9 | Sep 8 | Sep 7 | Sep 6 | Sep 5 | Sep 4 | Sep 3 | Sep 2 | Sep 1 | Aug 31 | Aug 30 | Aug 29 | Aug 28 | Aug 27 | Aug 26 | Aug 25 | Aug 24 | Aug 23 | Aug 22 | Aug 21 | Aug 20 | Aug 19 | Aug 18 | Aug 17 | Aug 16 | |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Windows | 5 | 6 | 7 | 8 | 10 | 10 | 10 | 10 | 12 | 11 | 11 | 14 | 13 | 10 | 11 | 8 | 7 | 17 | 10 | 14 | 7 | 9 | 9 | 12 | 8 | 9 | 16 | 9 | 6 | 6 | 6 | 14 | 6 | 8 | 10 | 8 | 9 | 6 | 4 | 10 | 8 | 5 | 9 | 6 | 9 | 8 |
Mac | 1 | 1 | 3 | 0 | 0 | 2 | 0 | 2 | 1 | 1 | 0 | 2 | 1 | 1 | 1 | 0 | 2 | 2 | 1 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 3 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 2 | 1 | 0 | 0 |
Linux | 0 | 2 | 1 | 5 | 3 | 3 | 3 | 3 | 5 | 3 | 1 | 4 | 4 | 4 | 3 | 4 | 3 | 5 | 2 | 0 | 3 | 0 | 4 | 4 | 3 | 2 | 2 | 0 | 1 | 3 | 2 | 3 | 1 | 4 | 1 | 3 | 3 | 9 | 2 | 3 | 2 | 1 | 2 | 2 | 1 | 1 |
Readme
- Source
- raw.githubusercontent.com
C++ Snippets for Sublime Text
This package adds some useful snippets for Sublime Text for C++11. It matches the following style:
if(/* condition */) {
/* code */
}
Installation
Package Control (recommended)
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
Cloning the Repository
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.
Downloading the Archive
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
Documentation can be found in the reference.md file.
License
The overall collection of snippets is licensed under the MIT License but the individual snippets themselves are licensed under CC0.