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.
+5
A:
You can use default keys:
- From "Form Designer" - F7
- From Code To "Form Designer" - Shift + F7
Avram
2009-02-05 00:26:13
And you can easily define any key in VS. However, I don't think there is a "CodeDesignerToggle" command in VS, just "ToCode" and "ToDesigner" so it would have to stay two keys, like F12 and Shift+F12 if you like F12 better.
peSHIr
2009-02-05 09:52:49
+2
A:
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
Simon Temlett
2009-02-05 09:04:17
+1
A:
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
Jeremy Mullin
2009-02-08 22:52:37