Webstorm opens single json file as new project

I just reinstalled Windows 10 and Webstorm on my computer and now whenever I double click a .JSON file Webstorm treats it as a project instead of opening LightEdit mode like it did before I reformated my drive.

I tried searching in settings and everything and I couldn't find a way to force Webstorm to use LightEdit on single files. Is there a way to do so?

Thank you for your help.

0
2 comments

you need to explicitly pass "-e" param on command line now to open file in this mode (see https://www.jetbrains.com/help/webstorm/lightedit-mode.html#lightedit_open_file_modes).

https://youtrack.jetbrains.com/issue/IDEA-62898#focus=Comments-27-4570732.0-0

>Note that starting from 2020.3 the mode can be used only with -e option, for example: idea -e myfile.txt, in all other cases a project will be opened. We have also introduced a separate ltedit script for each platform and more improvements to these scripts are coming in 2021.*

0
Avatar
Permanently deleted user

Hi Elena,

Thanks for the heads up!

In my use-case I wasn't using the command line to open Webstorm but the Windows Default Program associated with .json files by double clicking on said file. That being said, I snooped around the web and found this third-party program to edit Default Programs in Windows with command line arguments https://defaultprogramseditor.com/ and it worked like a charm. I tried to do it by hand with ftype and assoc in the command prompt but to no avail.

Cheers!

1

Please sign in to leave a comment.