Visual Studio 相当于 Delphi 书签
我使用 Delphi 多年,虽然我现在已经转向 Visual Studio,但我仍然深情地记得编号书签 (CTRL+K+< kbd>1 设置书签 1,CTRL+Q+1 转到书签 1)。
是否有等效的 Visual Studio 工具? 在 Delphi 之后,我发现 VS 中的愚蠢书签很麻烦。 我想添加书签然后返回到文件中的特定位置。
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(8)
我使用:
顺便说一句,在使用 Visual Studio 多年后,我几个月前才发现您可以按住 ALT 并拖动鼠标来标记一列或一个正方形。
I use:
BTW, after using Visual Studio for years I just found about a couple of months ago that you can press ALT and drag mouse to mark a column or a square.
只是为了扩大 Lars Truijens 的回答。 DPack 是一个 GExperts 类似 Visual Studio 的插件。 我发现从 Delphi IDE 迁移到 Visual Studio 时它很有帮助。
Just to amplify Lars Truijens answer. DPack is a GExperts like plugin for visual studio. I found it great help when moving from the Delphi IDE to Visual Studio.
Ctrl K + Ctrl K - 添加/删除行上的书签
Ctrl K + Ctrl N - 转到下一个书签
Ctrl K + Ctrl P - 转到上一个书签
还有其他选项。 查看“编辑”->“书签”菜单,
Ctrl K + Ctrl K - Add/Remove Bookmark on Line
Ctrl K + Ctrl N - Go to Next Bookmark
Ctrl K + Ctrl P - Go to Previous Bookmark
There are other options as well. Look under Edit->Bookmarks menu,
DPack 可以在 VisualStudio 中为您提供编号书签。
DPack can give you numbered bookmarks in VisualStudio.
VSBookmarks 提供了类似于神奇的
Delphi
书签功能。 已在 Visual Studio 2019 中测试并运行可能会与现有键盘快捷键发生冲突。 要查看和编辑这些:
VSBookmarks 仅适用于当前文件(这是 Delphi 行为),但不能仅配置单一颜色的书签。
Delphi 是一种很棒的语言和编辑器。 感谢 Sergey Vinyar 和 Alessandro Fragnani(用于 编号书签 扩展Visual Studio Code)让火焰保持活力。
VSBookmarks gives something like the fantastic
Delphi
bookmarks feature. Tested and works in Visual Studio 2019.There will likely be conflicts with existing keyboard shortcuts. To view and edit these:
VSBookmarks applies only within the current file (which is the Delphi behaviour), but is not configurable with just a single colour for the bookmark.
Delphi is an awesome language and editor. Thanks to Sergey Vinyar and Alessandro Fragnani (for the Numbered Bookmarks extension in Visual Studio Code) for keeping the flame alive.
我发现这个也非常有用:
CtrlK + CtrlL - 清除所有书签
I find this one also very useful:
CtrlK + CtrlL - Clear alll bookmarks
有一个书签窗口。 转至菜单视图/书签窗口(Ctrl+K、Ctrl+W)。
在那里您可以看到所有书签并对其进行重命名。 这比仅仅看到数字要好得多。
由于某种原因,他们不允许通过单击列标题来排序该列表,但您可以拖动书签并按照您想要的顺序调整它们。
There is a Bookmark Window. Go to menu View/Bookmark Window (Ctrl+K, Ctrl+W).
In there you can see all your bookmarks and rename them. That is a lot better than just seeing the numbers.
For some reason they don't allow to order that list by clicking in a column header, but you can drag the bookmarks and accommodate them in the order you want.
更多的是对你原来问题的评论而不是实际的答案,但 Delphi 比你引用的键盘快捷键更容易记住(和输入)键盘快捷键,现在很长一段时间可用:
设置书签 1:Ctrl-Shift-1
转到书签 1:Ctrl- 1
如果您回到 Delphi,这将使您的生活变得更加轻松! ;)
More a comment on your original question than an actual answer but Delphi has had much easier to remember (and type) keyboard shortcuts than what you quote available for quite some time now:
Set bookmark 1: Ctrl-Shift-1
Go to bookmark 1: Ctrl-1
If you ever go back to Delphi, this should make your life so much easier! ;)