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 41K
  • Win 20K
  • OS X 7K
  • Linux 14K
Jun 22 Jun 21 Jun 20 Jun 19 Jun 18 Jun 17 Jun 16 Jun 15 Jun 14 Jun 13 Jun 12 Jun 11 Jun 10 Jun 9 Jun 8 Jun 7 Jun 6 Jun 5 Jun 4 Jun 3 Jun 2 Jun 1 May 31 May 30 May 29 May 28 May 27 May 26 May 25 May 24 May 23 May 22 May 21 May 20 May 19 May 18 May 17 May 16 May 15 May 14 May 13 May 12 May 11 May 10 May 9 May 8
Windows 4 8 10 10 10 9 5 13 8 10 9 5 8 12 12 8 12 9 18 7 19 13 15 14 15 12 11 13 18 14 14 20 17 4 14 16 14 12 19 13 17 12 16 9 17 24
OS X 0 6 1 3 0 2 1 1 4 1 3 1 4 2 6 2 3 0 3 1 6 0 2 3 2 0 2 2 4 3 5 3 5 3 3 1 3 5 7 2 5 3 7 4 5 3
Linux 2 7 5 12 4 4 3 5 4 9 5 8 1 2 3 4 1 8 10 6 5 4 3 12 11 10 7 8 13 9 12 6 3 10 6 9 7 8 4 10 4 5 10 9 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.