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

C++ Snippets

by Rapptz ALL

C++11 Sublime Text Snippets

Labels snippets

Details

  • 1.2.5
  • github.​com
  • github.​com
  • 10 years ago
  • 10 minutes ago
  • 11 years ago

Installs

  • Total 76K
  • Win 43K
  • Mac 10K
  • Linux 22K
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 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
Windows 3 8 4 4 5 10 6 7 5 6 5 7 6 1 4 5 5 10 5 3 4 6 3 6 0 0 0 0 8 10 9 4 3 6 5 9 6 0 0 7 4 5 12 6 2 7
Mac 0 1 0 1 1 2 0 2 0 2 1 0 1 0 0 0 0 0 2 2 1 0 1 0 0 0 0 1 0 1 1 0 0 3 1 0 0 0 0 0 1 1 0 0 1 1
Linux 0 1 3 2 0 2 4 3 2 1 2 1 2 0 1 1 2 2 2 2 2 0 0 0 0 0 0 0 3 2 4 0 0 0 5 3 1 0 0 3 1 1 2 0 3 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.