开发者

Create Hot-Key to insert code

On almost al开发者_StackOverflowl of my vb files, at some point I have to enter some code which is about 30 characters long. Rather than me having to type all this out, or copy/paste from an existing file, I was wondering whether its possible, in Visual Studio 2010, to assign a Hot-Key to this value such as Ctrl+A+B which will paste this code in for me?


After @Johannes-Rössel's suggestion I had a look into Code Snippets and have now been able to set up my Visual Studio so that when I click [Keyword]+Tab+Tab it inserts my code!

I did this using Code Snippets and the Shortcut facility they have. Very useful!

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜