Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Mark current Line, and navigate through marked lines

In Visual Studio, we can use:
CTRL+kk to place a marker on the current line
and
CTRL+kn to navigate through marked lines.

My question is: is there a way to do this with Sublime Text2?

Thanks

like image 968
André Alçada Padez Avatar asked Apr 19 '12 14:04

André Alçada Padez


People also ask

How to mark line in Sublime Text?

In Sublime Text, you can select lines with a keystroke. Hit Cmd–L (Mac) or Ctrl–L (Windows) to select the current line. Repeat the keystroke to add the line below. Learn more Sublime Text Coding Tips.


1 Answers

Yep! Go on the menus to Preferences>Key Bindings - Default this is a file with all the default key bindings. Read the whole thing! (lots of goodies) Here is a cut and paste of the bookmarks info (linux), which should be self explanatory.

{ "keys": ["f2"], "command": "next_bookmark" }, { "keys": ["shift+f2"], "command": "prev_bookmark" }, { "keys": ["ctrl+f2"], "command": "toggle_bookmark" }, { "keys": ["ctrl+shift+f2"], "command": "clear_bookmarks" }, { "keys": ["alt+f2"], "command": "select_all_bookmarks" }, 
like image 174
fraxel Avatar answered Sep 27 '22 18:09

fraxel