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

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.