Delphi Prism / VS 2008:一键从代码切换到设计?

发布于 2024-07-13 22:51:20 字数 271 浏览 8 评论 0原文

多年来我一直使用 Delphi IDE 的多个版本。 当我使用 Delphi Prism 时,我必须处理 Visual Studio - 就我而言,尤其是 VS 2008。对

我来说最烦人的事情之一是我必须右键单击窗体才能切换到代码编辑器,反之亦然。反之亦然。 在 Delphi 中,只需按 F12 键即可在代码和表单设计器之间切换。

有没有办法让这个快捷方式在 Visual Studio 中工作? 在我看来,当我查看键盘选项时,我至少需要 2 个快捷键。

I've used several Versions of the Delphi IDE for many years. When I'm using Delphi Prism, I have to deal with Visual Studio - in my case especially VS 2008.

One of the most annoying things to me is that I have to right-click on my form to switch to the code editor and vice versa. In Delphi, one could simply press the F12 key to switch between code and form designer.

Is there a way to let this shortcut work in Visual Studio? It seems to me that I at least need 2 shortcuts when I take a look at the Keyboard options.

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

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

发布评论

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

评论(3

风柔一江水 2024-07-20 22:51:20

您可以使用默认键:

  • 从“表单设计器” - F7
  • 从代码到“表单设计器” - Shift + F7

You can use default keys:

  • From "Form Designer" - F7
  • From Code To "Form Designer" - Shift + F7
暮倦 2024-07-20 22:51:20

您见过免费的DPack吗? 这是一系列 IDE 增强功能,旨在提高您的工作效率,并包括 Visual Studio 的 Delphi 键盘映射。

最好的问候,

西蒙

Have you seen the free DPack. This is a series of IDE enhancements designed to make you more productive and includes a Delphi keyboard mapping for Visual Studio.

Best regards,

Simon

瀟灑尐姊 2024-07-20 22:51:20

我通过使用键盘选项将 F12 绑定到 View.ViewCodeView,仅模拟了 F12 键的 Delphi 行为。 ViewMarkup 和 View.ViewDesigner

您可以将它们绑定在不同的视图中,具体取决于您想要如何在它们之间旋转。 例如,在 ASP.NET 应用程序中,我使用以下命令:

  • HTML Editor Source View F12 ==> View.ViewCode

  • 文本编辑器F12 ==> View.ViewDesigner

  • HTML 编辑器设计视图 F12 ==> View.ViewMarkup

I've simulated Delphi's behavior for just the F12 key by using the keyboard options to bind F12 to View.ViewCode, View.ViewMarkup, and View.ViewDesigner.

You can bind them in different views depending on how you want to rotate between them. For example, in ASP.NET applications I use the following:

  • HTML Editor Source View F12 ==> View.ViewCode

  • Text Editor F12 ==> View.ViewDesigner

  • HTML Editor Design View F12 ==> View.ViewMarkup

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