Code line marker in sublime text 2

4

1

I personally like this feature in notepad++ enter image description here

Do you know how to do this in Sublime Text 2?

mars-o

Posted 2014-04-01T19:22:58.757

Reputation: 141

Related: http://stackoverflow.com/questions/13643964/sublimetext-bookmark-a-line-using-mouse

– Cees Timmerman – 2015-11-23T17:20:02.307

Answers

6

These are called Bookmarks in Sublime Text. Commands related to them are in the Goto » Bookmarks menu.

Screenshot

Daniel Beck

Posted 2014-04-01T19:22:58.757

Reputation: 98 421

1ah..i see. you have to click ctrl+f2 (for windows). the bookmark doesn't show when you click on the line#. :D thanks for this. :) – mars-o – 2014-04-09T10:40:10.373

@mars-o Right, that's why I told you where the menu items are and didn't just provide platform-dependent keyboard shortcuts ;-) – Daniel Beck – 2014-04-09T11:12:55.260

2

  • Ctrl+F2 - Toggle bookmark
  • F2 - Next bookmark
  • Shift+F2 - Persious bookmark
  • Shift+Ctrl+F2 - Clear bookmark
  • Alt+F2 - Select all bookmarks

Also you can use Sublime Bookmarks plugin.

Anton Dozortsev

Posted 2014-04-01T19:22:58.757

Reputation: 2 744