Sublime Text: Difference between revisions

From Han Wiki
Jump to navigation Jump to search
→‎editing: add comment shortcuts
Line 13: Line 13:
* Move current line down: <span class="package">Ctrl</span> + <span class="package">Shift</span> + <span class="package">Down Arrow</span>
* Move current line down: <span class="package">Ctrl</span> + <span class="package">Shift</span> + <span class="package">Down Arrow</span>
* Select current line: <span class="package">Ctrl</span> + <span class="package">L</span>
* Select current line: <span class="package">Ctrl</span> + <span class="package">L</span>
* Block comment (/* .. */) current selection: <span class="package">Ctrl</span> + <span class="package">Shift</span> + <span class="package">/</span>
* Comment/uncomment (//) current line: <span class="package">Ctrl</span> + <span class="package">/</span>


== folding ==
== folding ==

Revision as of 06:08, 3 July 2016

I'm currently using Sublime Text 3.

keyboard shortcuts

navigation

  • Indent current line to right: Ctrl + ]
  • Unindent current line to left: Ctrl + [

editing

  • Move current line up: Ctrl + Shift + Up Arrow
  • Move current line down: Ctrl + Shift + Down Arrow
  • Select current line: Ctrl + L
  • Block comment (/* .. */) current selection: Ctrl + Shift + /
  • Comment/uncomment (//) current line: Ctrl + /

folding

  • Fold highlighted text: Ctrl + Shift + [
  • Unfold all: Ctrl + K, Ctrl + J