Delphi Prism / VS 2008:一键从代码切换到设计?
多年来我一直使用 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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
您可以使用默认键:
You can use default keys:
您见过免费的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
我通过使用键盘选项将 F12 绑定到
View.ViewCode
、View,仅模拟了 F12 键的 Delphi 行为。 ViewMarku
p 和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.ViewMarku
p, andView.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