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

C++ Snippets

by Rapptz ALL

C++11 Sublime Text Snippets

Labels snippets

Details

Installs

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

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.