Skip to content
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

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

Open
A-iko opened this issue Jul 5, 2023 · 5 comments · May be fixed by #16730
Open

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

A-iko opened this issue Jul 5, 2023 · 5 comments · May be fixed by #16730
Milestone

Comments

@A-iko
Copy link

A-iko commented Jul 5, 2023

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

  • Add an optional setting to user_settings.json that can point at an exe.
  • When the setting is filled in, instead of using the discovered VS Code installation, use the exe the new setting points at to launch VS Code when the VS Code button is pressed in the right bottom of the screen.
  • When the setting is an empty string (I assume this is the way this file usually functions, when I look at "AppThemeAddressBarBackgroundColor" and similar settings) or the setting is absent, use the originally discovered VS Code executable.

Files Version

2.5.11.0

Windows Version

10.0.23486.1000

Comments

Thanks for your time and hard work!

@Josh65-2201
Copy link
Member

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

@yaira2 yaira2 moved this from 🆕 New to 📋 Planning stage in Files task board Oct 10, 2023
@yaira2 yaira2 changed the title Add a setting to point at code.exe Feature: Add a setting to change the "open" ide on the status bar Oct 10, 2023
@yaira2 yaira2 self-assigned this Oct 16, 2023
@mahtaran
Copy link

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
Copy link

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.

@yaira2
Copy link
Member

yaira2 commented Nov 5, 2024

We have two potential approaches for this feature. The first is to provide a setting to change the default IDE. The other approach is to support multiple IDEs. I'd like to understand the specific use cases to ensure we get the basics right and avoid unnecessary complexity.

@armandn
Copy link

armandn commented Jan 6, 2025

As a Jetbrains user, I'd very much want to see this option.

With regards to the approaches, I think the best route would be to have the IDE configurable on a per-project basis, with some default. This way I could open one project in Android Studio and another one in IntelliJ, for example. I'd say don't try to autodetect the IDE for a project.

@yaira2 yaira2 removed their assignment Jan 23, 2025
@yaira2 yaira2 moved this from 📋 Planning stage to 🏗 In progress in Files task board Jan 23, 2025
@yaira2 yaira2 added this to the Files v4 milestone Jan 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: 🏗 In progress
Development

Successfully merging a pull request may close this issue.

6 participants