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
  • 57 minutes ago
  • 11 years ago

Installs

  • Total 2K
  • Win 879
  • Mac 392
  • Linux 287
Oct 6 Oct 5 Oct 4 Oct 3 Oct 2 Oct 1 Sep 30 Sep 29 Sep 28 Sep 27 Sep 26 Sep 25 Sep 24 Sep 23 Sep 22 Sep 21 Sep 20 Sep 19 Sep 18 Sep 17 Sep 16 Sep 15 Sep 14 Sep 13 Sep 12 Sep 11 Sep 10 Sep 9 Sep 8 Sep 7 Sep 6 Sep 5 Sep 4 Sep 3 Sep 2 Sep 1 Aug 31 Aug 30 Aug 29 Aug 28 Aug 27 Aug 26 Aug 25 Aug 24 Aug 23
Windows 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
Mac 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 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