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

Surround​With

by Andr3as ALL

A 'surround with' ability for Sublime Text like Eclipse has.

Details

  • 2013.09.14.21.08.13
  • andrano.​de
  • github.​com
  • 11 years ago
  • 2 hours ago
  • 12 years ago

Installs

  • Total 2K
  • Win 883
  • Mac 395
  • Linux 288
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
Windows 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0
Mac 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
Linux 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0

Readme

Source
raw.​githubusercontent.​com

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

Install the wbond Package Control

  • Open the console of Sublime Text
  • Run “Package Control: Install Package”
  • Search for SurroundWith

Using Git

  • Browse the subfolder Data\Packages of your Sublime Text installation
  • Clone the repository
    • git clone git://github.com/Andr3as/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 - if-else clause
  • Ctrl-Alt-F - for loop
  • Ctrl-Alt-T - try-catch block
  • Ctrl-Alt-W - while loop

Example

Before

After

More Information

http://andrano.de/SurroundWith