Enable/disable specific extensions in VSCode with other extensions - visual-studio-code

Can I enable/disable specific extensions in VSCode from other extension?
There are commands to enable/disable all extensions, but I found no commands or methods for specific extensions.
Edited :
My description was insufficient, sorry.
I'm creating an extension that manages extensions by groups, so I would like to control it by code, not manually.
Thanks.

in VSCode from menu go to view>extensions,then click disable ande select Disable(Workspace)
Hope this helps!

Doing manual disable/enable for specific extension is the best option for me.
Go to your extensions tab, select manage gear(like setting icon) and the choose disable in the pop up. This will disable that specific extension and prompt you to reload VS Code.

Related

Disable the "refactor preview" confirmation tab

A few weeks ago, refactoring code using F2 worked without any confirmation. Since a few days, however, using F2 opens up a "Refactor preview" tab in the bottom panel.
The refactoring will not be done until I manually check what I want to refactor, and click the checkmark at the top right.
I cannot find anything online or in the vscode settings. Can this be disabled so that the refactoring automatically proceeds like it used to?
Are you accidentally pressing Shift + Enter after renaming?
This behavior should only happen after you press F2, change the name of the item, and then press Shift + Enter. Pressing only enter should automatically perform the rename without the refactor preview tab opening. The rename box states this:
In case its not clear, here is a video that illustrates this.
Note: This solution is only for c/c++ case. The reason is that C/C++ extension is doing bad in analyzing the code and relies on user to determine which ones to rename, then the preview panel is poped up for this.
Try disable Editor > Rename: Enable Preview in settings, and then restart vscode.
If the problem still exists, try replace C/C++ extension's intellisense with clangd:
Install clangd extension in vscode;
Disable C/C++ extension's intellisense by adding this to settings.json:
"C_Cpp.intelliSenseEngine": "Disabled"
Then vscode will adopt clangd's intellisense, which renames without a preview.
Uninstalling C/C++ extension is NOT recommended because intergrated gdb will be lost, but you can try lldb as a substitude:
Install CodeLLDB extension in vscode;
Configure cmake's default debug type to lldb in settings.json:
"cmake.debugConfig": {
"type": "lldb"
}

stop the extensions in VSCode from altering the right click menu

I'm using VScode for writing my Python codes. I'm using the 2 extensions Pylance and Python for docstrings. However, I find it annoying that these extensions alter the mouse right-click menu, and the mouse right-click action. Is there any way to stop these extensions from modifying this?
Is there any way to remove all these unnecessary options from the right-click menu?

How do I turn off the “extension recommendations” notification?

Every time I open Visual Studio Code, I get a notification:
This workspace has extension recommendations.
How do I turn off extension recommendations?
How do I turn off extension recommendations?
I found 4 ways to turn off the recommended extensions notification in VS Code:
Click the "Don't show again" option under the gear icon menu the next time the extension recommendations notification pops up. This is an easy way to turn off recommended extensions user by user.
There is a <repo name>/.vscode/extensions.json with a list of recommendations. Mine looked like this:
"recommendations": [
<extension name>,
<extension name>,
...
],
Remove any or all unwanted recommendations!
Another solution: Add one of the extensions in the recommended list to the unwanted list. For example,
"unwantedRecommendations": ["<extension name>"]
On the left menu, go to Extensions (Ctrl+Shift+F) > Select a recommended extension > Ignore Recommendation. This allows you to remove recommendations one by one.
In the new update of VS Code.
Recommendations can be disabled in the view
Open extension view from the side bar
Click on the 3 dots in the right hand corner of the extension view
Click on View
Enable or disable recommendations from there.
or if you don't want to see the recommendations at all then disable it in settings file
Open settings.json (Press Ctrl + Shift + P type settings.json)
set extensions.ignoreRecommendations to true

How can I remove this Git helper button bar in VSCode?

I'm using VSCode (Version 1.28.2) for MacOS and I have this really annoying bar I can't seem to remove.
Close Up of bar:
Wider View:
If anyone has some insight on how to hide this, it'd be greatly appreciated!
Hi davedeecoder, seems like you have enabled this extension, so in order to remove the bar you need to disable the extension by adding the line "git.enabled": false to your settings.json. IF you are unable to disable it, unfortunately, you have to Uninstall it.
I was able to disable this the following way:
Bring up the command prompt (Cmd-shift-P on Mac)
Enter Install Extensions
Search for #builtin in the Explorer of Extensions
Disable the Git extension
Reload the Editor as it suggests.

Is there a way to disable intellisense in Workbench?

The auto-complete/intellisense feature in MySQL Workbench is driving me up the wall, is there any way to disable it? I've had a dig through the settings & documentation but don't seem to be able to find any option for turning it off.
I'm working with the Linux build, v6.2.3.
Many thanks,
N00b
Yes, it is called "Code Completion" in Workbench. Change it under Preferences -> SQL Editor -> Query Editor. Here you can leave it enabled but disable "Automatically Start Code Completion", and then manually trigger it when needed. Or, disable it entirely. You can manually trigger it from the main menu under Edit -> Auto-complete, or use the shortcut key. That menu item shows the shortcut key for your platform.