How to show the folding commands in the Command Palette? - visual-studio-code

Is there a way to have the folding commands to show up on the Command Palette? It'd be quite useful as opposed to have to remember all of them.

You can use CTRL+K,CTRL+R and it will open a new browser tab with all the commands in a pdf file.
It will open this link as for today : "https://code.visualstudio.com/shortcuts/keyboard-shortcuts-windows.pdf"
I hope it will help.

Related

Is it possible to set up VS Code to run code in an external terminal Window instead of the integrated terminal/output windows?

I used to use the Atom code editor and one of the features I liked about this editor was that when I executed python code it would bring up an external CMD window where I would interact with the code, if input was required, and receive the results.
I have moved to VS Code as Atom is no longer supported and I have looked on here and with Google, but I do not seem to be able to get VS Code to behave in this fashion :(
I am wondering if any of the folks on here with more experience with VS code can advise if what I am looking to do is possible or do I just have to suck it up and use the integrated terminal/output panes at the bottom of the window?
Any advise would be very much appreciated.
I have tried in the "Configure Terminal Settings" to change from Integrated to External, but this has made no difference.

How to make vscode start with a blank file?

I want to use vscode instead of notepad. I prefer to type as fast as possible when launching vscode but i can't seem to find this option to do this. Does anyone know what this option is named after or if it's possible with a plugin?
This can by making a small tweak in vscode settings. All you need to do is open preferences and search for Startup editor. Under the Workbench section you'll find the Workbench: Startup Editor option. Change the value of this option to newUntitledFile.
Thanks to Torge Rosendahl whose comment provided the answer:
The setting you are looking for is workbench.startupEditor

Developing VS Code extension: how to hide command in the command palette

Is there anyway to hide specific commands from the command palette?
I don't want to expose them to users.
(Since we made a button on the sidebar for executing the command. It's unnecessary to show it from the command palette.)
Please share some tips for that.
Thanks in advance.
Have a nice day.

Developing VS Code extension: how to hide command in the command palette

Is there anyway to hide specific commands from the command palette?
I don't want to expose them to users.
(Since we made a button on the sidebar for executing the command. It's unnecessary to show it from the command palette.)
Please share some tips for that.
Thanks in advance.
Have a nice day.

List of all available commands in VSCode

Where can I find the list of all commands available in VSCode and their description?
I'm only aware of these sources:
In the official docs:
This list which only seems to include a subset of Visual Studio Code commands that you might use with vscode.commands.executeCommand API (why is this only a subset of the full list?)
This other list in the keybindings doc, which also only seems to include a subset of all commands available (I suppose those tied to a default keybinding?)
In the editor itself:
I can see a list of commands when I open the "default keybindings". Many actions are commented out with //, but interestingly I don't think this includes all the commands either (e.g. maximizeOtherEditor isn't listed)
Does VSCode have an official list of commands (commandID's) either in its documentation or in its code base? If not:
What's the closest to it?
What's a good way to navigate the code base to try to find all commands and what they do?
I believe that content of "Preferences: Default Keyboard Shortcuts (JSON)" (command ID workbench.action.openDefaultKeybindingsFile) really shows comprehensive list of all native and extensions-contributed commands VSC knows about at moment when invoked.
This file shows keys from VSC's defaults and extension manifests.
Commands with no suggested defaults are those commented out at the end of file.
Their descriptions (as seen in the Command Palette, Keyboard Shortcuts settings, extension Contributions tab and elsewhere) are supposedly in localization properties and I believe there is currently no way to see them along their respective command IDs in single convenient "localized" list. So for now the only way to read the description of command found in aforementioned JSON is pasting its ID into Keyboard Shortcuts search field. (Would be delighted to be proven wrong.)
In case someone ever fell on this and just wanted a quick-list of VSCode commands to browse through: https://gist.github.com/skfarhat/4e88ef386c93b9dceb98121d9457edbf
If you do, please note the VSCode version and commit. These may well be out of date by the time you read them.