Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Adding bookmarks in Sublime Text 2

Tags:

In Sublime Text 2, I'd like to be able to bookmark a line, so I can have easy access to it. I'm working on a 2011 iMac, and various sources tell me that the shortcut is supposed to be cmd + f2.

However, when I press that, absolutely nothing happens. It does work however, if I manually go through the Goto menu and add it. Has anyone else experienced the keyboard shortcut failing? Does anybody have any ideas of how to solve it?

Thanks.

For extra info, I think this is the relevant line in the default keybindings file.

{ "keys": ["super+f2"], "command": "toggle_bookmark" },

like image 554
Lars Avatar asked Mar 06 '13 21:03

Lars


People also ask

How do I add a bookmark in Sublime Text?

Bookmarks are a way to mark the text and move on. To create a bookmark, I select the text and choose "Toggle bookmark" from the "Goto" menu. A caret is added along the left margin of the line.

How do I add shortcuts to Sublime Text?

You can use the shortcut key Ctrl+Shift+N on Windows and Cmd+Shift+N for Mac to create a new window on Sublime Text editor.

What shortcut key is used to copy and paste a line of code in sublime?

Place your cursor anywhere in the line and use Cmd–X (Mac) or Ctrl–X (Windows) to cut the line. Then use Cmd–V (Mac) or Ctrl–V (Windows) to paste the line somewhere else. You can also copy a line of code the same way. Just use Cmd–C (Mac) or Ctrl–C (Windows).


1 Answers

The point is: F keys on mac are triggered with pressing fn key, so for this case that would work as cmd+fn+f2.

like image 178
kizu Avatar answered Oct 24 '22 21:10

kizu