Accept Incoming Change not appearing in VS Code (VS Code Version 1.61.2) - visual-studio-code

I have a problem, where I don't see the toolbar for merge conflicts in Visual Studio Code even after enabling the editor.codeLens.
Any idea what else it can be?
I tried to restart VS Code, disabling/enabling editor.codeLens.
I even installed/uninstalled Gitlens - Git supercharged.
Thank you in advance.
Reference for my inputs are from:
Accept Incoming Change not appearing in VS Code

In case someone still can't solve this issue. You can turn off the Git: Merge Editor from Setting menu.
VSCode merge conflict options not displaying

I uninstalled the VSCode and reinstalled it but doens't work.
Then I completely uninstalled the VSCode along with its data, caches, temporary files And Reinstalled it and Worked like a charm.
Before that I tried enabling CodeLens and Adding VSCode as default merge tool, difftool and whatever is available on the internet, nothing worked.
Basically what I deduce is, there is some extension that have malfunctioned your VSCode git merge tool or its settings. You can try uninstalling all extensions first before completly uninstall the VSCode
Uninstall Completely
For Mac run following command in terminalsee this answer
rm -fr ~/Library/Preferences/com.microsoft.VSCode.helper.plist
rm -fr ~/Library/Preferences/com.microsoft.VSCode.plist
rm -fr ~/Library/Caches/com.microsoft.VSCode
rm -fr ~/Library/Caches/com.microsoft.VSCode.ShipIt/
rm -fr ~/Library/Application\ Support/Code/
rm -fr ~/Library/Saved\ Application\ State/com.microsoft.VSCode.savedState/
rm -fr ~/.vscode/
For Windows see this answer
Go to Path: C:\Program Files\Microsoft VS Code
Double Click uninstall.exe
This will uninstall VS Code from Your Windows OS and
After uninstallation delete code folder also.
Open Run (Win + R) and Enter %appdata% Press Enter
Delete the folder code
Delete this folder as well %USERPROFILE%\.vscode according to this answer

Related

Code-OSS doesn't open folder or files from terminal command 'code-oss .'

A few days ago I installed Kali Linux. I'm trying to use Code-OSS instead of VSCode, since newest version of Kali doesn't have the libraries needed to install the normal one.
If I try to open a folder in Code-OSS from terminal using code-oss . or code ., it just opens Code on a new 'untitled-1' document, or opens the folder I was before closing Code-OSS. It doesn't open the folder I was in the terminal.
In these cases I need to open the folder I want through File > Open folder > search for folder and then open it.
The same just occurred with git commit or git commit --amend; it opens a new document, not the one I want to open.
I spent sometime searching for a solution on documentation, stackoverflow, google but could not find anything.
I cannot find any way to resolve this problem on Code-oss. Apparently it happened just with me.
Surprisingly for me, I was able to install VSCode following this tutorial, and it apparently managed to ignore the lack of libraries of Kali Linux that I mentioned above.
I hope this solution prevent any person in the future to get stuck on this.
I had the same issue when I first installed Kali-linux on my VM. Pretty anoying.
Just intall vscode by running :
sudo apt update
sudo apt install code
It will unistall code-oss and install VsCode, and it works now.

Visual Studio Code window has crashed

I m getting the below error in visual studio code
when i click on reopen this alert kept coming and not allowing me to write the code inside the editor. I have uninstall and reinstall visual studio code but still its showing this error.
Try terminating any Code.exe processes still alive in Task Manager
Mac only:
$ open /Applications/Visual\ Studio\ Code.app -n
For context:
-n, --new Open a new instance of the application even if one is already running. Thanks #TMG. More options can be found in the docs: https://code.visualstudio.com/docs/editor/command-line
I have VS Code v1.38.1 installed on Ubuntu 18.4
encounter a similar crashing issue (failed to launch Code) today.
It is possibly due to Ubuntu stopped while Code was open.
To resolve this issue, I did the following
$ cd ~/.config/Code
$ rm -rf Cache/
$ rm -rf CacheData/
$ rm -rf CacheExtensions/
Visual Studio Code states probable reason for that:

VS Code doesn't add command line on path permanently on Mac

I am using VS code 1.8.1 on Mac 10.12.3 (16D32). After launch vscode, I run cmd shift p to open command search field. Then run Install code command in Path. I can see the code got added on PATH but it got removed after I close vs code. Is there a way to add it permanently?
So I've just had this issue during setup of a new laptop and found a simple (but slightly embarrassing) solution that worked for me. After faffing about with it for way too long I noticed I had left it in Downloads. I moved the .app file to /Applications and ran the command-line install function again and now the "code" command persists.
Add this to your ~/.bash_profile
export PATH="$PATH:/Applications/Visual Studio Code.app/Contents/Resources/app/bin"
source: https://code.visualstudio.com/docs/setup/mac
I am assuming you've checked this link.
VSCode application generally resides in /Applications/Visual Studio Code.app/Contents/Resources/app/bin/code.
Follow these steps to access VSCode through code on shell.
Open bash_profile page
sudo vi /etc/paths
Add an extra line in the list of PATH folders as
/Applications/Visual\ Studio\ Code.app/Contents/Resources/app/bin/
Exit from vi: Esc > :wq! > Enter Key
Restart shell. Then do echo $PATH to confirm VSCode has been added successfully.
Check code command is added by typing which code. You should see VSCode path printed on screen.
Try this link if it doesn't work out.
Edit: I am using version 1.9.1 and after I ran Install code command in Path it got added permanently.
Visual Studio Code
rm /usr/local/bin/code
ln -s "/Applications/Visual Studio Code.app/Contents/Resources/app/bin/code" /usr/local/bin/code
Visual Studio Code - Insiders
rm /usr/local/bin/code-insiders
ln -s "/Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/bin/code" /usr/local/bin/code-insiders
For Big Sur:
From the official docs:
Note: Since zsh became the default shell in macOS Catalina, run the
following commands to add VS Code to your path:
cat << EOF >> ~/.zprofile
# Add Visual Studio Code (code) export PATH="\$PATH:/Applications/Visual Studio
Code.app/Contents/Resources/app/bin" EOF
I did this and it worked for me.
I am running Visual Studio Code - Insiders 1.23.0 on a Mac/Mac OS 10.10.5 Yosemite. I added the "Shell Command: Install 'code-insiders' command in PATH" from within VSC - Insiders. From the terminal in any directory I just add 'code-insiders .' and it launches in VSC - Insiders without issue.
Hope that helps.
For me, the problem was that Visual Studio Code.app was not in the Applications folder, but rather in the Downloads folder. Moving it there and re-running the add to path command fixed it for me.

Completely uninstall VS Code extensions

Since the latest release of VS Code, I get an error whenever I open a C# file (I have installed the csharp language extension, powered by OmniSharp). This is the error I get:
I tried uninstalling the extension and re-install it, same problem. I uninstalled the application altogether and reinstalled it - but when I do that, my extensions are still installed (for instance Python and reStructuredText were still there). I uninstalled yet again and deleted the %USER%\AppData\Roaming|Local\Code directory. When I reinstalled, the extensions were still there.
How do I completely remove the installed extensions? I'd like to be sure I'm starting from scratch before opening a bug for the OmniSharp extension crash.
Turns out the extensions are stored under %USER%\.vscode\extensions. Deleting that gets rid of them.
For Windows :
%USER%\\.vscode\extensions
(or)
%USERPROFILE%\.vscode\extensions
Location of extensions for Linux/MAC:
~/.vscode/extensions
All the answers above are correct, but for a beginner, I wanted to add that all you have to do is, run this command in your terminal to remove ALL extensions/themes.
For Mac/Linux
rm -rf ~/.vscode/extensions
For Windows
rmdir %USERPROFILE%\.vscode\extensions /s
You can remove them at:
Windows: %USERPROFILE%\.vscode\extensions
Mac: ~/.vscode/extensions
Linux: ~/.vscode/extensions
It worked for me, but the enviroment variable was %USERPROFILE%\.vscode\extensions
If you want to remove a VSCode Extension in Windows 10 on WSL2 completely, then you need to look in a few additional directories:
~/.vscode-server/data/CachedExtensionVSIXs/
~/.vscode-server/data/User/globalStorage/
~/.vscode-server/extensions/
If you are using Linux then try:
code --list-extensions | while read extension;
do
code --uninstall-extension $extension --force
done
On Windows you can do (not try 🤔😉):
for /f "usebackq tokens=*" %f in (`code --list-extensions`) do code --uninstall-extension %f --force
One line variant of Ahmad's answer:
code --list-extensions | xargs -L 1 code --uninstall-extension
If you work with VS Code-Insiders extensions in folder: Windows
%USERPROFILE%.vscode-insiders\extension
MAC/Linux:
~/.vscode-insiders/extensions
For Mac
Finder -> Go to Folder -> Go
Paste the directory ~/.vscode/extensions
Your are in your destination.
First, you have to find your resources of vscode.
The resources usually located in /usr/share (linux).
So you have to cd to /usr/share/code/resources/app to see extensions directory.
Now, you just use rm -rf extensions to remove extensions directory.
For Windows - Users\username.vscode\extensions
You may delete what extensions you don't want.
And Click on hidden items then follow the below instructions -
This PC -> C:\Users\username\AppData\Roaming\Code\CachedExtensionVSIXs and
delete file which you uninstalled.
I found the following to be effective:
First, locate the extension ID:
code --list-extensions
Then, uninstall it:
code --uninstall-extension ID
Note: You must replace the ID with the ID you discovered in step one.
All work for me, but there is an issue need to fix to get the directory on Windows use:
%USERPROFILE%\.vscode\extension,
That's it.

Uninstall Eclipse under OSX?

I'm running Eclipse SDK 3.4.0 on Mac OS X 10.5.6.
Every time I try to install something new through "software updates", the message "The software items you selected may not be valid with your current installation" shows up.
So I'm going to uninstall it and re-install Eclipse.
Should I just erase the Eclipse folder or is there a way to uninstall it?
Actually Eclipse does create some other files not within it's directory which survive deleting it's directory.
In Snow Leopard, look in your user's account under:
~/Library/Caches/org.eclipse.eclipse
~/Library/Preferences/org.eclipse.eclipse.plist
Not sure if you need to turn on viewing of hidden files to see those.
Under Lion I deleted the following files and folders:
eclipse in /Applications (obviously)
.eclipse in ~
.eclipse_keyring in ~
org.eclipse.eclipse in ~/Library/Caches
org.eclipse.eclipse.savedState in ~/Library/Saved Application State/
Some of them are hidden so you should delete them via Terminal.
Here is my list of things to delete for OSX Mountain Lion
~/.eclipse (folder);
~/Library/Saved Application/org.eclipse.eclipse.savedState;
~/Library/Preferences/org.eclipse.eclipse.plist;
~/Library/Caches/org.eclipse.eclipse;
... and of course the eclipse install folder
No need to uninstall anything, you can just delete the eclipse/ folder, but you should also use a fresh workspace or delete the workspace/.metadata folder.
In my case with High Sierra, apart from the eclipse folder, I deleted also:
~/.eclipse
~/.p2/pool/plugins/org.eclipse.*
~/.p2/pool/.eclipseextension/
~/.p2/org.eclipse.equinox.p2.repository/
~/.p2/org.eclipse.equinox.p2.engine/
~/.p2/org.eclipse.equinox.p2.core/
From terminal, find all eclipse directories with
sudo find / -iname "Eclipse"
Delete those directories with rm command.
Deleting the eclipse folder is equivalent to uninstalling it. In fact, if you don't want to tamper with the existing installation you can create another instance of eclipse and run from the new location.
Eclipse has no impact on Mac OS beyond it directory, so there is no problem uninstalling.
I think that What you are facing is the result of Eclipse switching the plugin distribution system recently. There are now two redundant and not very compatible means of installing plugins. It's a complete mess. You may be better off (if possible) installing a more recent version of Eclipse (maybe even the 3.5 milestones) as they seem to be more stable in that regard.
I know this thread is too old but recently I was wondering how to delete eclipse app on my MacBook Pro running macOS High Sierra.
Bellow are the steps which I followed to delete it from my system. Added screenshots for more clear understanding.
Open the eclipse app and it will show an app icon in dock. If it is not already present in dock then please try to run the app from Spotlight Search by pressing ⌘ + space.
Now right click on that eclipse logo from dock and click Show in Finder under Options.
It will open the location of the eclipse app in an external finder window.
You can just delete the entire root directory (i.e. - eclipse) by pressing ⌘ + delete.
Don't forget to delete the app from Trash as well if you are removing it from system completely.
Thanks. Hope this helped.
BTW. AppZapper is a great OSX tool for uninstalling apps and their preferences.
It sometimes comes a part of MacHeist
For BigSur, I did follow considering all the above.
Remove from Applications folder
rm -rf ~/.eclipse/
rm -rf ~/.p2/pool/
rm -rf ~/.p2/org.eclipse.equinox.p2.repository/
rm -rf ~/.p2/org.eclipse.equinox.p2.engine/
rm -rf ~/.p2/org.eclipse.equinox.p2.core/
rm -rf ~/Library/Caches/org.eclipse.platform.ide/
rm ~/Library/Preferences/org.eclipse.oomph.setup.installer.product.with-jre.restricted.plist
rm ~/Library/Preferences/org.eclipse.platform.ide.plist
rm -rf ~/Library/Saved\ Application\ State/org.eclipse.oomph.setup.installer.product.with-jre.restricted.savedState/
rm -rf ~/Library/Saved\ Application\ State/org.eclipse.platform.ide.savedState/
I just had a similar problem, with the GWT-PlugIn not showing up in the interface.
Deleting the eclipse folder did not solve it, GWT was still there!
Deleting workspace didn't work!
But deleting the .eclipse folder in the home directory did!
I'm working under WIndows 7 here, but it should be the same with OSX. But you may have to make the folder visible first. Under linux based system, folders starting with a dot are invisible by default.
This folder was probably the reason I had problems in the first place. If I remember right, I switched from basic Eclipse to EE, but didn't delete this folder.
In my opinion, an uninstall skript would do Eclipse quite good.
Just delete the eclipse folder wherever it is