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
  • Just now
  • 11 years ago

Installs

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