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" },
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.
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.
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).
The point is: F
keys on mac are triggered with pressing fn
key, so for this case that would work as cmd+fn+f2
.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With