Change shortcut for opening Command Palette in VSCode [duplicate] - visual-studio-code

This question already has answers here:
Changing the key binding for Command Palette
(2 answers)
Closed 1 year ago.
How can I change the keyboard shortcut for opening the Command Palette in VSCode? The default (on macOS) is Shift+Command+P, which I don't like. I want to change it to something else.
I know how to change keyboard shortcuts in general, but there doesn't seem to be an option to change the shortcut for opening the command palette - or at least I can't find it when searching for "command palette". Any help would be appreciated.

You configure keyboard shortcuts for VS Code via File | Preferences | Keyboard Shortcuts.
See https://code.visualstudio.com/docs/getstarted/keybindings#_keyboard-shortcuts-editor for more information.
If you know the current shortcut, you can search for it. For example:
In this case you can see the command name is "Show All Commands". You can then edit it directly.

Related

What is vscode integrated terminal keyboard shortcut name

Sorry for the noob question. I am on an Italian keyboard and I would like to change the keyboard shortcut for the integrated terminal to something I can actually use.
When trying to change it I can't actually find the option for which I should change the key bind.
I have the Open New External Terminal option, but not something like Open Internal Terminal Option.

Disable field name description in vscode [duplicate]

This question already has answers here:
Why is VS Code showing this these labels or parameter names for System.out.println() in java files?
(7 answers)
Closed 9 months ago.
I currently don't how was this enabled, but every time I have a file open in the editor with a function that requires some parameters, it shows their name at the left. E.g., in this picture it's showing "value:". I want to disable this so it doesn't show that anymore.
You have two ways where you can disable this default option
Settings panel - affects all projects that uses vs code:
Press f1
Type Preferences: Open user settings
Search for inlay Hints
Finally, disable the inlay Hints option
If you want to disable this setting just for an specific vs workspace, open your workspace settings.json file and paste this inside:
"editor.inlayHints.enabled": false

How can I switch focus between the various parts of vscode with the keyboard? [duplicate]

This question already has answers here:
Switch focus between editor and integrated terminal
(26 answers)
Closed last year.
For example, how to switch between the Explorer and the Editors, or between the Editors and the Terminal?
You can use the short cuts:
Ctrl+0 : go to Explorer
Ctrl+1 : go to Editor Group 1
Ctrl+2 : go to Editor Group 2
....
Ctrl+9 : go to Editor Group 9
Press Ctrl+Shift+P to bring up the command palette and search for Focus. There are several commands to switch the focus, e.g. View: Focus Active Editor Group or Explorer: Focus on Outline View. You can assign custom keybindings to those.

How to set drop down view in integrated terminal on VS Code? [duplicate]

This question already has answers here:
Enable or disable VS Code Integrated Terminal Tabs?
(5 answers)
Closed 1 year ago.
Initially VS Code showed a drop down list for all the terminals available but now it is just showing plus sign and new terminals get added to right pane.
How do I enable like this: (plus sign and the drop down view)
In my current VS Code it got changed to:
I don't know if its due to update or I messed up some settings.
I had the same issue. (on a mac) go to code > preferences > Settings. You'll need to find the setting under terminal or just search 'terminal' in the search bar. you'll be looking for the following setting and just make sure it is unchecked.
If you don't want to fiddle with the settings, a quick fix is to open 2 terminals, then right-click on the space below the list of terminals, and click "hide tabs".

Is there a "quick documentation" shortcut for VS code? [duplicate]

This question already has answers here:
How to trigger documentation popup in vscode
(7 answers)
Closed 2 years ago.
In some IDEs, Intellij IDEA for example, pressing control + j will display the docstring like this question. How do I get similar functionality for VS code?
The best I've found is cmd + shift + space for mac
Settings
This three settings in the picture will help.
Click to thing that you want to its documentation with mouse
Use keybinding that given below
Show Hover
Definition Preview Hover
Ctrl+K + control+I might work. You can change to your favorite hotkey combination by change setting in Keyboard Shortcuts (Ctrl+K + control+S)
There are 2 ways in Visual Studio Code (version 1.34.0) to show quick documentation:
short version -> mouse hover elements which you want to lookup
long version -> after short version appears, press 'ctrl' key twice (if you press 'ctrl' key once, the long version documentation appears as long as you hold the 'ctrl' key)
The VSCode shortcuts Command is Show Hover, just change it to ^ j or whatever and you are ready to go.
Don't forget to resolve the conflicting shortcuts if any.