Visual Studio 相当于 Delphi 书签

发布于 2024-07-04 05:19:12 字数 284 浏览 6 评论 0 原文

我使用 Delphi 多年,虽然我现在已经转向 Visual Studio,但我仍然深情地记得编号书签 (CTRL+K+< kbd>1 设置书签 1,CTRL+Q+1 转到书签 1)。

是否有等效的 Visual Studio 工具? 在 Delphi 之后,我发现 VS 中的愚蠢书签很麻烦。 我想添加书签然后返回到文件中的特定位置。

I use Delphi for many years, and although I have now moved on to Visual Studio I still fondly remember numbered bookmarks (CTRL+K+1 to set bookmark 1, CTRL+Q+1 to goto bookmark 1).

Is there a Visual Studio equivalent? I'm find the dumb bookmarks in VS a chore after Delphi. I want to bookmark then return to a specific place in the file.

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

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

发布评论

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

评论(8

ぺ禁宫浮华殁 2024-07-11 05:19:12

我使用:

  • CTRL-F2 切换书签
  • F2 下一个书签
  • SHIFT-F2 上一个书签
  • CTRL-SHIFT-F2 清除所有书签

顺便说一句,在使用 Visual Studio 多年后,我几个月前才发现您可以按住 ALT 并拖动鼠标来标记一列或一个正方形。

I use:

  • CTRL-F2 toggle bookmark
  • F2 next bookmark
  • SHIFT-F2 previous bookmark
  • CTRL-SHIFT-F2 clear all bookmarks

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.

嘿看小鸭子会跑 2024-07-11 05:19:12

只是为了扩大 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.

空城仅有旧梦在 2024-07-11 05:19:12

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,

南七夏 2024-07-11 05:19:12

DPack 可以在 VisualStudio 中为您提供编号书签。

DPack can give you numbered bookmarks in VisualStudio.

脱离于你 2024-07-11 05:19:12

VSBookmarks 提供了类似于神奇的 Delphi 书签功能。 已在 Visual Studio 2019 中测试并运行

  • 。 搜索“VSBookmarks”(撰写本文时为 v1.7)
  • 安装并重新启动 Visual Studio
  • 使用 Ctrl + Shift + N 设置书签
  • 使用Ctrl + N 移至上一个书签

可能会与现有键盘快捷键发生冲突。 要查看和编辑这些:

  • 工具> 选项> 环境> 键盘
  • 在“按快捷键”中输入 Ctrl + Shift + 1
  • 查看当前分配给快捷方式的命令
  • 在以下位置查找命令列表并删除快捷方式
  • 重复 Ctrl + Shift + 1Ctrl + 9

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.

  • Extensions > Search "VSBookmarks" (v1.7 at time of writing)
  • Install and restart Visual Studio
  • Use Ctrl + Shift + N to set a bookmark
  • Use Ctrl + N to move to a previous bookmark

There will likely be conflicts with existing keyboard shortcuts. To view and edit these:

  • Tools > Options > Environment > Keyboard
  • In "Press shortcut keys" type Ctrl + Shift + 1
  • See which command(s) are currently assigned to the shortcut
  • Find the command in the list and remove the shortcut
  • Repeat for Ctrl + Shift + 1 through Ctrl + 9

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.

屋檐 2024-07-11 05:19:12

我发现这个也非常有用:
CtrlK + CtrlL - 清除所有书签

I find this one also very useful:
CtrlK + CtrlL - Clear alll bookmarks

月亮坠入山谷 2024-07-11 05:19:12

有一个书签窗口。 转至菜单视图/书签窗口(Ctrl+KCtrl+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.

£冰雨忧蓝° 2024-07-11 05:19:12

更多的是对你原来问题的评论而不是实际的答案,但 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! ;)

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