NOTE:
- This repository is fork of this: https://github.com/Rapptz/cpp-sublime-snippet by Rapptz.
- Why? I want to use snippets according to my code style and my needs.
- What are the differences?
- In snippets: Code style changed, some unuseful (in my opininion) snippets removed, some improved. Use
diff
, Luke. ;) - In docs and installation: Sublime's package manager can't install this. You should install it manually. This README.md file corrected. File reference.md is not corrected yet (do it later)!
- In snippets: Code style changed, some unuseful (in my opininion) snippets removed, some improved. Use
- What's next? Maybe, I will fill up this collection. I don't know.
This package adds some useful snippets for Sublime Text for C++11. It matches the following style:
if (/* condition */) {
/* code */
}
You can manually install the package by using Git.
- Navigate to Sublime’s Packages directory
- Run
git clone https://github.com/DmitryKuk/cpp-sublime-snippet
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/DmitryKuk/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.