コードスニペットのリストにあるキーワードの後にキーを押すと、VisualStudioは常にコードスニペットを挿入します。
ただし、既存のコードに1行のコメントを追加したい場合、これは非常に厄介です。たとえば、else
キーワードの後にTAB文字を追加することはできません。
ここにTAB文字を挿入するには、どのキーボードの組み合わせを押す必要がありますか?
あなたの助けに感謝します。
コードスニペットのリストにあるキーワードの後にキーを押すと、VisualStudioは常にコードスニペットを挿入します。
ただし、既存のコードに1行のコメントを追加したい場合、これは非常に厄介です。たとえば、else
キーワードの後にTAB文字を追加することはできません。
ここにTAB文字を挿入するには、どのキーボードの組み合わせを押す必要がありますか?
あなたの助けに感謝します。
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.