cschubiner / Sublime-SurroundWith

A 'surround with' plugin for Sublime Text 2 and 3

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

#SurroundWith

This is a plugin for the code editor Sublime Text 2 and 3. It adds a 'surround with' ability to Sublime like Eclipse has.

#Installation

Using Package Control

Don't do this -- you'll get the wrong version

Using Git

  • Browse the subfolder Data\Packages of your Sublime Text installation
  • Clone the repository
cd ~/Library/Application\ Support/Sublime\ Text\ 3/Packages/
git clone https://github.com/cschubiner/Sublime-SurroundWith.git

Alternative

  • Download the zip archive
  • Extract it into an "SurroundWith" sub-directroy in Data\Packages of your Sublime Text installation

#Basic Use

  • Select the text which should be surrounded
  • Run the command (see below)

##Default Hotkeys

  • Ctrl-Alt-D - div
  • Ctrl-Alt-U - do-while loop
  • Ctrl-Alt-I - if clause
  • Ctrl-Alt-E - else clause
  • Ctrl-Alt-F - for loop
  • Ctrl-Alt-T - try-catch block
  • Ctrl-Alt-W - while loop

##Example

####Before

Before

####After

After

###More Information

http://andrano.de/SurroundWith

About

A 'surround with' plugin for Sublime Text 2 and 3

License:MIT License


Languages

Language:JavaScript 62.3%Language:Python 37.7%