开发者

Visual Studio Windows Forms Designer keyboard shortcuts

Extremely basic question.

Are there common actions I can perform using keyboard shortcuts in the Windows Forms designer in Visual Studio (2008)?

Alternately, could I add my own keyboard shortcuts (either through settings or macros)?

It'd really be nice if I could, for example, set a control to dock/undock in its parent container by typing Alt + D. Or if I could set a control's name just by typing Alt + N and typing the name. Things like that.

It's just kind of tedious to click on the item, scroll in the Properties grid to the property I want to change, type the new value, scroll to the next property I want to change, etc. Which is why I have a feeling this functionality is in there already, or is easily configu开发者_JAVA技巧rable, and I just don't know about it.


I don't know of any specific to the Windows Forms Designer.

Here are the general ones: Visual C# 2008 Keybinding Reference Poster

Automating Repetitive Actions by Using Macros

  • Go to Tools -> Macros -> Record TemporaryMacro Ctrl + Shift + R and record your macro.

  • Save macro by going to Tools -> Macros -> Save TemporaryMacro as MyMacro

There are several built-in macros, which can be explored using Macro Explorer, Tools -> Macros -> Macro Explorer

There is also Resharper.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜