有没有一种方法可以在Visual Studio项目中为代码添加书签? [英] Is there a way to bookmark code in a Visual Studio project?

查看:75
本文介绍了有没有一种方法可以在Visual Studio项目中为代码添加书签?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在各种项目中,我会继续涉及某些部分.有没有一种方法可以有效地添加书签"这些部分,以便我可以快速跳回特定文件(或特定方法)中的特定行?

In various projects there are certain parts I will keep jumping to. Is there a way to effectively "bookmark" these parts, so I can quickly jump back to a certain line in a certain file (or a certain method)?

在浏览解决方案或进行查找整个项目/解决方案"时,我总是迷路.

I keep getting lost navigating the solution or doing a "find in whole project/solution".

推荐答案

在Visual Studio中,您可以

In Visual Studio, you can set Bookmarks in the code.

要在书签之间跳转:

Ctrl + K + N (下一个)

Ctrl + K + N (for next)

Ctrl + K + P (对于以前的版本)

Ctrl + K + P (for previous)

要打开/关闭某行的书签,请执行以下操作:

To toggle a Bookmark on/off for a line:

Ctrl + K + K

这篇关于有没有一种方法可以在Visual Studio项目中为代码添加书签?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆