phpstorm "lightedit" mode
Hi, I want to use phpstorm to open one-off files from ssh-servers using winscp (don't judge :D). Everything works OK but every time I open a file it just opens it in the project's IDE instance that happens to be one I currently use. I have lightedit enabled and I understand it that random files would get opened in a separate editor window. This is not happening for me and I can't figure it out. Is there anything I am missing?
Thanks a log in advance
Please sign in to leave a comment.
Hi there,
1) What exact command do you run to open file in LightEdit mode?
2) What result are you getting?
3) have you changed any LightEdit-related settings (if there are any)
Windows 10 x64, PhpStorm 2021.1.4 x64
Works for me: opens new file in a new tab - see below. NOTE: I do not have PhpStorm opened at that moment.
If I have PhpStorm already opened ... it still opens separate LightEdit window for me:
Hi Andriy,
thanks for your reply. I use toolbox and have the "shell scripts" generated, so I simply use "phpstorm" from any console window. In WinSCP I have `"phpstorm" "!.!"`, as suggested by the author. In any case, it never opens a new window but always just opens the file in a new tab in the current IDE instance. I have the lightedit option set to true in the registry.
.... I just randomly stumbled upon https://www.jetbrains.com/help/idea/lightedit-mode.html#use_lightedit_editor which states that one needs to use `-e` option. Using this option makes it work!
Sorry for wasting everyones time. Maybe this thread may help others who are confused like me!
cheers!
Yes, you need `-e` option (it is required now for a while: introduced the next version after LightEdit mode was made available since lots of people still prefer/got used to using full IDE/were not happy with LightEdit used by default)
On Windows:
(use full path for the target file if command is executed not from current working dir)
I have no Idea how I missed that. I just googled the lightedit mode again while typing the reply to make sure I have the registry setting set to `true` when I saw that I have to use the option. I any case, your reply made me google it and subsequently make it work, so thanks a lot!