Visual Studio Development Bookmark and Share   
 index > Visual Studio WPF Designer > Visual studio 2008 custom hotkeys
 

Visual studio 2008 custom hotkeys

I couldent find anything on the net so i thaught i would ask here, I know macro's can be made for VS2008 etc and was wondering is it possible for example to set a hotkey <eg ctrl+alt+1> that will place a spesific control on my form

example:

i have setup my most commonly used controls
ctrl+alt+1 = button
ctrl+alt+2 = label
ctrl+alt+3 = textbox

When i press either hotkey that control will apear on the designer window . Sorry if this is the wrong forum and Thank you in advance :)
Daten  Monday, August 31, 2009 4:23 PM

You could create a Macro that typed the XAML into the XAML editor.

I tried creating a Macro the added directly to the design surface from the ToolBox but couldn't get it to work.

You can use a Macro similar to this and assign a Global hot key to run it.


Sub ButtonCreateMacro()

DTE.ActiveDocument.Selection.Text =

"<Button />"

End Sub


Cheers, Karl - Microsoft Product Team, Code Project MVP - http://karlshifflett.wordpress.com/
  • Marked As Answer byDaten Monday, August 31, 2009 5:18 PM
  •  
karl140.6  Monday, August 31, 2009 5:15 PM

You could create a Macro that typed the XAML into the XAML editor.

I tried creating a Macro the added directly to the design surface from the ToolBox but couldn't get it to work.

You can use a Macro similar to this and assign a Global hot key to run it.


Sub ButtonCreateMacro()

DTE.ActiveDocument.Selection.Text =

"<Button />"

End Sub


Cheers, Karl - Microsoft Product Team, Code Project MVP - http://karlshifflett.wordpress.com/
  • Marked As Answer byDaten Monday, August 31, 2009 5:18 PM
  •  
karl140.6  Monday, August 31, 2009 5:15 PM
ill give it a go, Thank you
Daten  Monday, August 31, 2009 5:18 PM

You can use google to search for other answers

Custom Search

More Threads

• 2008 add-in for the WPF designer
• x:Static using Vb.net code behind
• again problem with xaml designer
• Custom Control Designer
• Properties Categoreis
• Unhandled exception in WPF designer after installing Silverlight3 toolkit
• hard lock in VS2008 XAML Editing
• Merged Dictionaries in the App.xaml
• Cider in Orcas Beta 1 hangs
• anyway to keep vs2008 beta from updating when xaml changes?