-
Notifications
You must be signed in to change notification settings - Fork 2.7k
VSCode is not set as default editor #1795
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Selecting VS Code as default editor did not work as intended. `Git-for-windows` would install successfully, but `core.editor` option would not be set. git-for-windows/git#1795 Signed-off-by: Paul-Sebastian Ungureanu <[email protected]>
I installed |
Selecting VS Code [Insiders] as default editor did not work as intended. `Git-for-windows` would install successfully, but `core.editor` option would not be set. git-for-windows/git#1795 Signed-off-by: Paul-Sebastian Ungureanu <[email protected]>
No comment |
Check ps |
Selecting VS Code [Insiders] as default editor did not work as intended. `Git-for-windows` would install successfully, but `core.editor` option would not be set. git-for-windows/git#1795 Signed-off-by: Paul-Sebastian Ungureanu <[email protected]>
Yup seeing this as well and using the new @code installer and trying to update to G4W 2.19.0 Is there a work around? Can we edit something? |
@SteveALee as a workaround you can edit your |
@shiftkey well this is strange. During the update install (overwrite older) I selected notepad++ and autocrlf=auto but I see the following in my
|
@SteveALee the installation configuration is applied to the system Git configuration, not your global Git configuration |
I think the problem is that couple months back Microsoft has switched to new type of installation distributive which doesn't require admin access in order to install/update VS Code. I believe Git installer is looking for VS Code installed "old way" and obviously just can't find it. |
Also having this issue. Some looking shows VS Code installed at EDIT: I reinstalled VS Code at the system level and Git Setup now gives me the VS Code option, so that's definitely the problem. EDIT 2: Despite selecting VS Code, the default editor was not set to VS Code. |
For everyone chiming in:
|
This has been addressed in the meantime. If |
Hello,
While writing this, I managed to find the problem (check "P.S").
My setup:
I was trying to add SublimeText and Atom in the list of possible default editors in Git-For-Windows installer. So, I implemented them, made an installer and tried to test it, but it didn't work (by "didn't work" I mean that it installed successfully, both Sublime and Atom could be selected, but neither one of them were added as default editor)... So, I started debugging, although everything seemed alright.
So:
P.S: I just looked one more time through registry and observed that:
Data of
HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\notepad++.exe
is:C:\Program Files (x86)\Notepad++\notepad++.exe
Data of
HKLM\SOFTWARE\Classes\Applications\Code.exe\shell\open\command
is:"C:\Program Files\Microsoft VS Code\Code.exe" "%1"
"%1"
is removed from the string at line 1135, but the"
at the beginning and at the end of the line are not removed at all. I fixed this, compiled it and now it works. I am going to send a fix for this. I guess that putting your thoughts into words helps debugging. 😄The text was updated successfully, but these errors were encountered: