What command do I have to use in VSCode to toggle the docstring?
I have searched in settings for docstring, help but nothing that makes sense shows up.
Usage. Set your cursor on a word or select a word and press the associated keybinding (Ctrl+r by default on macOS, Alt+r on Windows and Linux). You can also use the VS Code Command Palette and choose the Toggle command, or use the Toggle action in a context menu.
Ctrl+D selects the word at the cursor, or the next occurrence of the current selection. Tip: You can also add more cursors with Ctrl+Shift+L, which will add a selection at each occurrence of the current selected text.
Quick file navigation# Tip: You can open any file by its name when you type Ctrl+P (Quick Open). The Explorer is great for navigating between files when you are exploring a project. However, when you are working on a task, you will find yourself quickly jumping between the same set of files.
I guess you want parameter suggestions for a method or function. Shortcut for mac is: cmd + Shift + Space.
See other question: Is there a "quick documentation" shortcut for VS code?
For all shortcuts press: cmd + k, cmd + r.
You can hit Ctrl + K Ctrl + I. This will execute the editor.action.showHover
command and will display the same text that is displayed when you hover over for example a function. Unfortunately there seems to be no corresponding editor.action.hideHover
command (I searched the keybindings.json
). But it should be possible to hide the text again by pressing the Esc key.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With