Remove GitHub icon from VSCode statusbar - visual-studio-code

How do I hide the "Publish to GitHub" cloud icon:

If you're willing to install the Custom CSS and JS Loader extension, you can follow the installation instructions as normal.
When setting the vscode_custom_css.imports key in settings.json as part of those instructions, you can add a reference to the small custom stylesheet I've published to GitHub, which will hide the cloud icon when it would otherwise be presented in the interface:
If installing a new extension is a non-starter, you can right-click on the status bar and select the "Source Control" option, which will remove the cloud icon, but also all other source control-related items (including the branch name) as well. Unfortunately, there isn't a more granular way out-of-the-box to target this icon specifically.

There is a release note including an option to hide the "Sync changes" button in the version control tab. Maybe this setting hides the icon in the status bar too?
https://code.visualstudio.com/updates/v1_61#_publish-or-sync-action-button-for-git-repositories

Related

How do I stop VSCode from revealing a file in the sidebar as soon as I click on it in "Source Control => Changes"

When I have a multiple file with changes in VSCode I often want to go trough the changes without staging.
I cannot do this because as soon as I click on one file with changes in "Source Control => Changes" the file is revealed in the sidebar and I have to navigate back to "Source Control" to review the changes of another file. In the past this wasn't the case. In order to open the file regularly (without diff) I could manually go to the Explorer and the file was selected.
When files are staged I can click on them and they will not be revealed in the sidebar. This behavior is what I would also like to have for files that are not staged.
What is causing this behavior (I use VSCode v1.74.2)? In the past this wasn't the case.
Update: This behavior is caused by an extension I need (Sigasi). They made an update and for some reason this caused the described unwanted behavior.
Hello from the Sigasi support department. ;)
The Sigasi extension for VS Code comes with a dedicated Project View to bring some useful Eclipse File System features to our VS Code extension.
One of the features this Project View offers, is to link the Project View with the editor in focus. This allows to quickly spot where you are in the project file hierarchy.
This feature can easily be disabled by going to the Project View and clicking the icon that controls the link with the editor. I'm linking a screenshot showing the link with editor setting.
It seems this feature at the moment is more intrusive than intended. We plan to adjust this feature so that it isn't active if the Project View is not visible or collapsed.

Hide VSCode source control repositories icons

Is it posible to hide these icons?
I especially need to hide icons for actions "Synchronize changes", "Commit" and "Refresh".
I tried to use configuration by https://code.visualstudio.com/docs/getstarted/settings (section "git." or "scm.") but nothing help.
In general, after a recent vscode update, you can right-click on most icons in the UI, including a related ... and select the Hide [commit, refresh, etc.] option to hide it.
Right-clicking on any remaining icon in the same area should give you the option to re-enable those related icons you hid.
The command View: Reset All Menus should bring back all icons across the UI you may have hidden in case you hide them all from the same view!

How do I restore the stashes menu in Visual Studio Codes Source Control panel?

I can't find the Stashes (nor REMOTES, BRANCHES, FILE HISTORY) menu in the Source Control (the one you open up with Ctrl-Shift-U) tool bar.
This is how my Visual Studio Code looks like:
And this is a picture I found on the web with the menu options I'd like to restore:
I couldn't find an option to restore these menu options.
it seems like somehow GitLens, instead of replacing the Source Control panel, add his own:
You need to install (or enable if you have it disabled) the GitLens extension. That is what adds those sub-sections seen in your second screenshot.
Alternatively, if you click the ellipsis that is to the right of each of your repositories, you should see a "Stash" menu item that should also meet most of your needs.
Note that the GitLens extension is apart of the Git Extension Pack extension, which contains a few other extensions as well (including Git History, which you appear to have already).
Just for reference, in case anybody else stumbles upon this issue.
I created this issue at GitLens github repo and the solution was to right click on the original 'Source Control' icon and select the option "Reset location"
It seems it's not the first time that something like this happened.

How to make Eclipse automatically show selected file in explorer?

In one of my projects, I guess I enabled a setting somewhere that I didn't realize how much I use.
Whenever I click into the main editor, it brings the package explorer to the file automatically and scrolls to it. I can't seem to find this setting anywhere in preferences, does anyone know what it is called?
It's called "Link with Editor", the two-way arrow icon you'll find in the toolbars of various Views.

What is that component on the top-right of VS Code called? How can I change the setting of it?

I'm using VS Code on Mac and I was curious about one component.
Every time I open a new python file, this component will show up on the top right of the current window? But I can't find the name of it.
That's not just "one component", but actually multiple buttons added to the editor actions toolbar from multiple extensions installed on your VS Code.
In order from left to right:
Open Changes (built-in with VS Code as part of their Version Control functions)
Run Python File in Terminal (added by Microsoft's own Python extension)
Open Changes in previous revision (added by the GitLens extension)
Show Revision Details (added by the GitLens extension)
Open Changes in next revision (added by the GitLens extension)
Toggle File Blame Annotations (added by the GitLens extension)
Split Editor (built-in with VS Code)
For GitLens, they are automatically added when it detects the currently opened file is part of a git repository. You can configure them by accessing the command palette (CMD+Shift+P on a Mac), then entering "GitLens: Open Settings". Find the "Menus & Toolbars" section:
For example, if you want to remove buttons 3., 4., and 5., uncheck "Add commands to the editor group toolbar" > "Add comparison commands". Then reload VS Code. You can configure all the other settings there.
For the green Play button, it automatically appears when you the currently active file is a Python file. AFAIK, there is no way to configure or hide/remove it other than disabling the Python extension completely (which you certainly don't want to do). There are requests on VS Code's Github page to hide it, like this: Add setting to disable icon for "Run Python File In Terminal".
For the "Open Changes" and "Split Editor" buttons, AFAIK there is no built-in way to hide/remove them. You can only control the behavior from the VS Code settings:
As mentioned in the comments, there is a feature request for VS Code to Allow hiding the buttons in the tab bar line and in the panel title bar, which includes the "Open Changes" and "Split Editor" buttons. There are users who provided workarounds at hiding the buttons using extensions. You may want to follow that thread and/or try out some of those extensions.