ctrl+shift+p filters: :st2 :st3 :win :osx :linux
Browse

C++ Snippets

by Rapptz ST2/ST3

C++11 Sublime Text Snippets

Labels snippets

Details

Installs

  • Total 37K
  • Win 18K
  • OS X 6K
  • Linux 13K
Dec 18 Dec 17 Dec 16 Dec 15 Dec 14 Dec 13 Dec 12 Dec 11 Dec 10 Dec 9 Dec 8 Dec 7 Dec 6 Dec 5 Dec 4 Dec 3 Dec 2 Dec 1 Nov 30 Nov 29 Nov 28 Nov 27 Nov 26 Nov 25 Nov 24 Nov 23 Nov 22 Nov 21 Nov 20 Nov 19 Nov 18 Nov 17 Nov 16 Nov 15 Nov 14 Nov 13 Nov 12 Nov 11 Nov 10 Nov 9 Nov 8 Nov 7 Nov 6 Nov 5 Nov 4 Nov 3
Windows 1 14 11 16 23 9 16 13 7 11 10 15 15 13 13 8 9 19 15 20 18 15 18 9 18 17 12 17 12 9 8 14 15 19 12 16 18 14 7 15 14 21 18 18 10 23
OS X 0 1 1 7 1 6 3 5 1 5 3 2 4 4 7 3 2 3 3 2 3 3 0 1 4 3 3 4 1 1 2 4 1 7 5 4 3 4 2 6 8 5 6 5 1 4
Linux 0 2 6 8 4 7 8 7 8 6 7 6 6 15 3 5 9 9 7 14 7 9 4 10 7 12 17 6 6 13 7 12 8 7 13 6 7 7 8 14 8 13 6 8 8 10

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.