Are there bookmarks in Visual Studio Code?

后端 未结 7 873
有刺的猬
有刺的猬 2020-12-12 10:00

How can I set bookmarks in Visual Studio Code? I can\'t find any keyboard shortcuts.

Or is there anything else that I can use instead?

7条回答
  •  北海茫月
    2020-12-12 10:19

    If you are using vscodevim extension, then you can harness the power of vim keyboard moves. When you are on a line that you would like to bookmark, in normal mode, you can type:

    m {a-z A-Z} for a possible 52 bookmarks within a file. Small letter alphabets are for bookmarks within a single file. Capital letters preserve their marks across files.

    To navigate to a bookmark from within any file, you then need to hit ' {a-z A-Z}. I don't think these bookmarks stay across different VSCode sessions though.

    More vim shortcuts here.

提交回复
热议问题