files-community / Files

A modern file manager that helps users organize their files and folders.
https://files.community
MIT License
34.28k stars 2.19k forks source link

Feature: Add a setting to change the "open" ide on the status bar #12857

Open A-iko opened 1 year ago

A-iko commented 1 year ago

What feature or improvement do you think would benefit Files?

Hey there!

I'm really enjoying the new git integration with Files, but there's one small thing I'm missing. I use code-insiders as my daily driver, the beta version of visual studio code, and the "VS Code" button doesn't seem to work. Since insiders functions the same as regular VS Code, I tried a couple of ways to make this work, including creating a shortcut called code.exe and adding it to the path, but it doesn't seem like that does the trick.

I did read that adding support for other IDE's is being considered, but I think having an optional setting pointing at the code.exe you wish to use would be a great consideration for those of us who use VS code alternatives like Insiders or VS Codium.

Requirements

Files Version

2.5.11.0

Windows Version

10.0.23486.1000

Comments

Thanks for your time and hard work!

Josh65-2201 commented 1 year ago

Thanks for the feedback, I've added this to the project board.

mahtaran commented 8 months ago

A temporary (dirty) solution while @yaira2 is working on this:

Add a new registry key under Software\Microsoft\Windows\CurrentVersion\Uninstall called Microsoft Visual Studio Code (in either the current user or local machine container). You can do this using the following command:

New-Item -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Uninstall\Microsoft Visual Studio Code"

This will trick Files into thinking the regular VS Code is installed. Then, you must also ensure that the code command launches VS Code Insiders. I did this by creating a file called code.cmd with the following contents:

@echo off
setlocal
set VSCODE_DEV=
set ELECTRON_RUN_AS_NODE=1
"C:\Program Files\Microsoft VS Code Insiders\Code - Insiders.exe" "C:\Program Files\Microsoft VS Code Insiders\resources\app\out\cli.js" %*
endlocal

And adding that to my path.

RusKnyaz commented 5 months ago

I don't use VS Code very often; much more often I open the repository in GitExtensions. I think I'm not the only one. It would be great if known git GUIs were automatically detected and menu items were added, or at least this could be configured.