1

コードスニペットのリストにあるキーワードの後に​​キーを押すと、VisualStudioは常にコードスニペットを挿入します。

ただし、既存のコードに1行のコメントを追加したい場合、これは非常に厄介です。たとえば、elseキーワードの後に​​TAB文字を追加することはできません。

ここにTAB文字を挿入するには、どのキーボードの組み合わせを押す必要がありますか?

あなたの助けに感謝します。

4

1 に答える 1

1

A simple workaround for your else scenario is to insert a space and then the tab character, then remove the space.

If you want to make changes to snippets, you can do this by going to Tools -> Code Snippets Manager (Ctrl-K, Ctrl-B) and select the snippet you wish to modify. The path to the .snippet file will be shown. You can just open the file in a text editor and modify it to do the action you want.

于 2013-02-19T19:10:01.667 に答える