How can I remove this Git helper button bar in VSCode? - visual-studio-code

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.

Related

Enable/disable specific extensions in VSCode with other extensions

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.

VSCode - How to cycle through the tems from the quick fix popup with custom keybindings?

I want to cycle through this menu with keyboard but not using Up/Down arrow keys. But I can't find any information on the internet.
After more research, an acceptable solution would be replace the native quick fix menu with keyboard-quickfix extension, and set keybindings for the extension.

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"
}

Flutter :: My Refactor Button does not appear while Right Click on VSCode

My Refactor Button does not appear while Right Click on VSCode
Flutter: 1.22.5
VSCode: 1.53.0
Is there anyone can help to tell how to make refactor to be appear while Right Click on VSCode?
Thx in advance
There was a bug in the Dart LSP server that prevented this from showing up. It's been fixed, but the fix has not reached Dart/Flutter stable channels yet:
https://github.com/Dart-Code/Dart-Code/issues/2885
You can still access all of the refactors from the Lightbulb menu (Ctrl+.) in the meantime, or you could disable the "Dart: LSP Preview" setting in VS Code to revert to the older protocol until the fix has rolled out.
You can use refactor command Ctrl+Shift+R in VS code

Toggle Auto Format On Save with Prettier in VSCode

99% of the time I want VSCode to auto format my files on save with Prettier. For that 1% of the time is there a way to toggle this to off in a way that's quicker than going into the settings and then manually switching it on and off?
I've tried looking for any keyboard bindings but the only one I found was prettier.open-output
There is command Save without Formatting with the keybinding Cmd+K S
ref: https://github.com/Microsoft/vscode/issues/38695#issuecomment-423422531
I switched from Atom where my prettier extension had a toggle in the menu bar at the bottom of the editor to turn formatting-on-save on or off.
To add this to VS Code, I installed this extension: https://marketplace.visualstudio.com/items?itemName=tombonnike.vscode-status-bar-format-toggle
Once you install it you will see this in the bottom menu bar:
When the check mark is there, prettier will format on save if you have that enabled in your VS Code settings under Text Editor --> Formatting.
Once you have a file that you don't want prettier to format, for example when reviewing someone else's code, you can turn off auto-formatting which looks like this: