如何防止VS2008保存书签?
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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您应该能够编写一个宏来处理
DocumentEvents
或WindowEvents
事件接口。为了响应(例如)
DocumentEvents_OnDocumentOpened
(它获取一个Document
对象),您应该能够删除所有书签。或者,如果书签与窗口相关,您可能需要处理 WindowEvents_OnWindowCreated。
文档声称这些仅供 Microsoft 内部使用,但对于
BuildEvents
也是如此,并且自 VS2003 以来我一直在成功地使用它们。You should be able to write a macro that handles the
DocumentEvents
orWindowEvents
event interfaces.In response to (e.g.)
DocumentEvents_OnDocumentOpened
, which gets aDocument
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.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.