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.
Please sign in to leave a comment.
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
-eoption, for example:idea -e myfile.txt, in all other cases a project will be opened. We have also introduced a separatelteditscript for each platform and more improvements to these scripts are coming in 2021.*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!