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

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.