Normally the specified cut of ghostdoc will be automatically (popup to the end user) enabled when starting the Visual Studio after the installation. however, sometimes you may reset default ghostdoc shortcut cut in Visual Studio or want to assign your own shortm custom cut.
Here is how you do that:
- In Visual Studio goTools-> options, Then selectEnvironment-> keyboard
-
- Filter commands by "ghostdoc" inShow commands containingText Box
- SelectTools. submain. ghostdoc. documentthisIn the list
-
- Select "Text Editor" inUse new shortcut inDrop down
- Choose the hotkey you want to invokeDocumentthisCommand (CTRL + Shift + D in this example)
-
- PressAssignAndOKTo close the dialog and save. You are all set.
While you are in the Options dialog You may want also assign shortcut to another less known but very useful ghostdoc command Rebuild documentation . This command will rebuild your existing XML comment using the changed signature information. Be careful with this command though-it will reset your custom edited XML comment . In the example below we assigned command Rebuilddocumentation To sequence Ctrl + Shift + D, CTRL + Shift + R