How to add a button to Visual Studio Intellisense

前端 未结 2 1778
渐次进展
渐次进展 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:14

    In the IntelliSense property page, clear text box options or check box options for IntelliSense features that you do not want:

    Show completion list after a character is typed
    
    Committed by typing the following characters
    
    Committed by pressing the space bar
    
    IntelliSense pre-selects most recently used members applies to IntelliSense for Most Recently Used Members
    

    For more information, see IntelliSense, C#, Text Editor, Options Dialog Box

    0 讨论(0)
  • 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.

    0 讨论(0)
提交回复
热议问题