如何防止VS2008保存书签?

发布于 2024-07-13 06:31:06 字数 141 浏览 5 评论 0原文

VS2008自动保存书签并在我重新打开文档时恢复它们。 我怎样才能让它停止拯救他们呢? 当我打开文档时,我希望它不带任何书签,就像以前版本的 VS 一样。

我两次浏览了整个选项集,但找不到任何与书签相关的内容。

TIA。

VS2008 automatically saves bookmarks and restores them when I reopen the document. How can I tell it to stop saving them. When I open a doc, I want it without any bookmark, as in previous versions of VS.

I went twice through the whole options set but couldn't find anything related to bookmarks.

TIA.

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

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

发布评论

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

评论(2

︶葆Ⅱㄣ 2024-07-20 06:31:06

您应该能够编写一个宏来处理 DocumentEventsWindowEvents 事件接口。

为了响应(例如)DocumentEvents_OnDocumentOpened(它获取一个Document 对象),您应该能够删除所有书签。

或者,如果书签与窗口相关,您可能需要处理 WindowEvents_OnWindowCreated。

文档声称这些仅供 Microsoft 内部使用,但对于 BuildEvents 也是如此,并且自 VS2003 以来我一直在成功地使用它们。

You should be able to write a macro that handles the DocumentEvents or WindowEvents event interfaces.

In response to (e.g.) DocumentEvents_OnDocumentOpened, which gets a Document object, you should be able to remove all of the bookmarks.

Or, if bookmarks are relative to a window, you might need to handle WindowEvents_OnWindowCreated.

The documentation claims that these are for Microsoft internal use only, but it says the same for BuildEvents, and I've been using those successfully since VS2003.

跨年 2024-07-20 06:31:06

CTRL+B CTRL+C 组合键可清除所有书签。 您可以在保存之前使用它,尽管它会清除所有文件中的所有书签并显示确认对话框。

The CTRL+B CTRL+C key combo clears all the bookmarks. You could use that before saving although it wipes out all the bookmarks in all files and displays a confirm dialog.

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