标记当前行,并在标记的行中导航

在 Visual Studio 中,我们可以使用:
CTRL+kk在当前行上放置标记
还有
CTRL+kn在标记线中导航。

我的问题是: 有没有一种方法可以做到这一点与崇高文本2?

谢谢

54742 次浏览

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" },

Actually, you can. Here's the menu screenshot from a mac. I hope this helps.

Sublime text2

The bookmarks system is pretty OK, but I would suggest you to try the plug-in "SublimeBookmarks" which extends the capabilities of the built-in mechanism.

Check it out here: https://github.com/bollu/sublimeBookmark

Preview: http://i.imgur.com/gtjChPG.gif enter image description here