How to add a button to Visual Studio Intellisense

前端 未结 2 1833
渐次进展
渐次进展 2021-02-01 14:49

I would like to add a button to the top of the list of options returned by Visual Studio\'s IntelliSense. When the button is clicked, my custom code will be executed (which wil

2条回答
  •  半阙折子戏
    2021-02-01 15:26

    1) In a C# or VB project, open a code file and put the cursor where you want to insert the code snippet.

    2) Bring up the code snippet menu in one of three ways:

        Press CTRL+K, CTRL+X.
    
        On the Edit menu, point to IntelliSense, and then click Insert Snippet.
    
        Right-click the mouse and then select the Insert Snippet command on the shortcut menu.
    

    3) Select the code snippet from the code snippet inserter and then press TAB or ENTER, or double-click the snippet.

提交回复
热议问题