Is there a way to open files (from Windows) that are not part of a project?
If I try to "open with Intellij" a PHP file I get the error message:
Cannot open project 'd/wamp/www/index.php'
I'd be really nice to use this is a general editor for files? Is this posible?
Please sign in to leave a comment.
Hello Vagif,
This is supported in IDEA 8.
--
Dmitry Jemerov
Development Lead
JetBrains, Inc.
http://www.jetbrains.com/
"Develop with Pleasure!"
Hello Vagif,
I use the Native Neighbourhood plugin that allows one to drag & drop files
onto IDEA's frame (from a file explorer) and have them opened. Requires IDEA
to be already running, but it's handy enough, nonetheless.
http://plugins.intellij.net/plugin/?id=38
HTH,
Andrei
VK> If I try to "open with Intellij" a PHP file I get the error message:
VK>
VK> Cannot open project 'd/wamp/www/index.php'
VK>
VK> I'd be really nice to use this is a general editor for files? Is
VK> this posible?
VK>
Alternatively, there is
the DragNDrop plugin
the OpenInIDEA plugin <shamelessPlug>written by myself</shamelessPlug>
Regards,
Jens
Blah, I hate having choice. Now i have to test which I like most lol. Thanks!
Hey, Jens,
Plug away! I love OpenInIdea and use it a lot. I have a little cover script that I use from the shell:
&2 exit 1 fi for arg; do if [ -f "$arg" ]; then targets=( "${targets[@]}" "$arg" ) else if [ -f "$arg.java" ]; then targets=( "${targets[@]}" "$arg.java" ) else echo "oii: File \"$arg\" does not exist" >&2 let nErrors++ fi fi done if [ $nErrors -gt 0 ]; then exit 2 fi for target in "${targets[@]}"; do j6 -cp "$OII_JAR" "$OII_Main" "$target" 2>/dev/null eStat=$? if [ $eStat -ne 0 ]; then echo "oii: OpenInIDEA exited with status $eStat for file \"$target\"" >&2 fi done ]]>(j6 runs Java SE release 1.6, since I have multiple versions installed.)
Randall Schulz
Hello Randall,
thanks very much; I'm glad you like the plugin.
Unfortunately I have no machine to test your script on because our workstations here run on windows (and I think I would get myself into deep trouble if I tried to install IDEA on our server machines), but at first glance I think it looks good. Would you have any objections against me putting on the Wiki pages of the plugin's googlecode pages?
Regards,
Jens
P.S.: I'm quite anxious to see the built-in IDEA functionality that Dmitry wrote about. Hopefully I will be able to bury my plugin then (even though I believe I will keep the file associations' icon mappings - it's really nice to have IDEA's look all over the computer - see attached image)
Attachment(s):
openInIDEA.png
Hi, Jens,
Two (and a half) things:
1) Life as a programmer on Windows is impossible without Cygwin: http://cygwin.org
1a) With very tiny modifications (path names, basically), my script will run under Cygwin.
2) You may pass the script on. Please make a tiny note who supplied it.
Randall Schulz