Visual Studio 2010 XAML Editor awkward IntelliSense?

后端 未结 2 1826
误落风尘
误落风尘 2021-02-07 13:15

In Visual Studio C# text editor, when you want a property, you just type prop and then hit tab TWICE to get a \"snippet\"/template for a property. Both the Type and

2条回答
  •  眼角桃花
    2021-02-07 13:44

    Another simpler solution is to rebind the shortcut key for the operation Edit.WordNext.

    By default this is set to Ctrl+RightArrow. In visual studio go to TOOLS->Options->Environment->Keyboard.

    I like to bind this to Shift+Space so I don't have to use the arrow keys. When you've finished typing the xaml attribute and the cursor is on the left hand side of the end quotation mark, hit Shift+Space and it jumps to the right hand side of the mark so you can carry on typing the rest of the attributes.

    A lot easier than using a macro.

提交回复
热议问题