为什么 Visual Studio 2005+书签键盘 是否可以使用快捷方式转到其他文档中的书签?

发布于 2024-09-11 01:48:11 字数 627 浏览 4 评论 0原文

在 Visual Studio 2005 之前,书签功能 工作完美。然后从 VS 2005 开始,我注意到请求“下一个”或“上一个”书签不再正常工作。当然,它会带您到另一个书签,但它会带您到根据您当前位置最不相关或最模糊的书签位置。即使当我坐在书签上,并且我可以“看到”下一个(和上一个)书签时,Visual Studio 仍然会带我到一些随机的遥远书签(在一个完全独立的项目和文件中,如果可以的话)帮助它)。

事实上,我真正能够到达文档中的“下一个”书签的唯一方法是确保整个解决方案中的书签不超过两个(并且两个书签都必须位于当前文档中)。

我试图了解这是如何出错的,如果有一些简单的配置设置,我可以进行纠正问题。我现在使用 Visual Studio 2008(也有同样的问题)。我在2010年还没有尝试过这个。

更新: 我发现书签的遍历顺序就是它们的创建顺序。有一个“书签视图”,可以在其中手动重新排列该顺序。然而,在过去,顺序始终是升序行号,这更有用。那么现在的问题是,我该如何改变这种行为呢?

Prior to Visual Studio 2005, the bookmark feature worked perfectly. Then starting with VS 2005, I noticed that requesting the "next" or "previous" bookmark stopped working correctly. Sure it will take you to a different bookmark, but it takes you to a bookmark location that is the least relevant or most obscure based on your current location. Even when I'm sitting on a book mark, and I can "see" the next (and previous) book mark, Visual Studio will still take me to some random far-off bookmark (in an entirely seperate project and file if it can help it).

In fact, the only way I can truly get to the "next" bookmark in my document, is to ensure there are not more than two bookmarks in the entire solution (and both must be located in the current document).

I'm trying to understand how this went so wrong, and if there is some simple configuration setting I can make that will correct the problem. I'm now using Visual Studio 2008 (which has the same problem). I've not tried this in 2010 yet.

Update:
I've discovered that the order which bookmarks are traversed, are the order they are created in. There is a "bookmarks view" where that order can be manually re-arranged. However, in the past the order was always ascending line-number, which was much more useful. So now the question is, how do I modify the behavior?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

尽揽少女心 2024-09-18 01:48:11

我认为从 2005 年开始,CTRL-K+CTRL-N 和 CTRL-K+CTRL-P 快捷键已从“将插入符号移动到当前文档中的下一个书签”更改为“将插入符号移动到下一个书签”。

您可以通过编辑键盘快捷键以分配 CTRL-K+CTRL-N 和 CTRL-K+CTRL-P 来恢复旧行为,如下所示:

在此处输入图像描述

在此处输入图像描述

I think starting with 2005 the CTRL-K+CTRL-N and CTRL-K+CTRL-P shortcuts were changed from "move the caret to the next bookmark in the current document" to "move the caret to the next bookmark".

You can get the old behaviour back by editing the keyboard shortcuts to assign CTRL-K+CTRL-N and CTRL-K+CTRL-P like so:

enter image description here

enter image description here

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文