Using PhpStorm as default system editor / open single file

I just opened a tiny 10 line php script in my home directory - it started "scanning files" and I guess it was trying to index every file within my home directory (mp3s, movies, uni assignments, other unrelated php scripts, ?) because it took forever and I had to killall -9 java. Not really what I expected from the "Open File".  (Maybe it should say "Open File and Create Project")

Is it currently possible to open a file in PhpStorm (just a single file) without it creating a new project?

Would love to have PhpStorm as one of the "Right Click > Open With" options within the OS file browser.

I found this request but only 6 votes http://youtrack.jetbrains.net/issue/WI-1816 . Surely more people have come across this issue? Is there another feature request I can vote for / existing forum thread that covers this issue?

Or is there a hacky work around like scripting phpstorm to launch an existing empty project and then fireing off the "open file" option?

Thanks!
Dave

7 comments

Hello David,

it started "scanning files" and I guess it was trying to index every file within my home directory (mp3s, movies, uni assignments, other unrelated php scripts, ?)

Surely it skips indexing the files of unrelated/binary types, so was looking for another PHP files in the folder.

Maybe it should say "Open File and Create Project"


http://youtrack.jetbrains.net/issue/WI-3220


Is it currently possible to open a file in PhpStorm (just a single file) without it creating a new project?

Nope. :(
IDEA platform that PhpStorm is based on does not support working without a project.

Is there another feature request I can vote for / existing forum thread that covers this issue?


http://youtrack.jetbrains.net/issue/WI-1398
http://youtrack.jetbrains.net/issue/WI-1947
my last comment at http://devnet.jetbrains.net/message/5271223#5271223
http://devnet.jetbrains.net/message/5268753#5268753
http://devnet.jetbrains.net/message/5269067#5269067

    Or is there a hacky work around like scripting phpstorm to launch an existing empty project and then fireing off the "open file" option?


Nothing we're aware of.

Regards,
  Kirill

0

it started "scanning files" and I guess it was trying to index every file within my home directory (mp3s, movies, uni assignments, other unrelated php scripts, ?)

Surely it skips indexing the files of unrelated/binary types, so was looking for another PHP files in the folder.



True!

Thanks for the links :)
0
Or is there a hacky work around like scripting phpstorm to launch an existing empty project and then fireing off the "open file" option?

If you open file not from project - you will have only code highlighting and all, see http://youtrack.jetbrains.net/issue/WI-3069. That's why this hack doesn't have any sense.

0

Hello David,

it took forever and I had to killall -9 java

If IDE ever becomes unresponsive again, please take a thread dump using JDK tool: "jstack -l <pid>", or adaptj GUI alternative.

Kirill

0

If you open file not from project - you will have only code highlighting and all, see http://youtrack.jetbrains.net/issue/WI-3069.



That's quite ok with me, as I don't have those features in my current default system editor (gedit).

eg: Opening a HTML or Plain Text file to quickly adjust a typo, may not need the project-specific features of PhpStorm.

0

Isn't better use some small non-java file editor with code highlighting (like notepad++) for quick changes? Any non-java small text editor loads much quickly than PhpStorm.

0

Yer haven't found a good one for gnome. gedit isn't too bad but it's not very smart.

edit: scribes seems alright - i'll see how that treats me over the next week.

0

Please sign in to leave a comment.