IntelliJ as a single file editor...

Is there a way to use IntelliJ as a Java/JSP editor without having to create a project and still get some basic support like smart-completion from JDK etc.? Quite often I need to edit a single file when IntelliJ is not running already. To open intelliJ and a project takes 4-5 mins and lot of memory. This forces me to use vi/emacs/ultra-edit etc. as the editor but these editors do not do smart completion etc. as well as IDEA (surprise surprise)

What I would like to do is open intellij, not load a project, open a file and be able to get basic support such as JDK smart completion e.g.

String s = "Hello World";
String s1 = s.sub<ctrl+space>

Is this possible today? How can I do this?

5 comments
Comment actions Permalink

Hi.

I would sure like that as well.

I would also like to be able to open files by directly double clicking in a file browser.(There is a plugin that claims to do this. I never managed it to work and it uses some rmi calls to make calls inside IDEA)

Florian

0
Comment actions Permalink

Hello, Florian!
You wrote on Wed, 7 Jul 2004 11:27:03 +0400 (MSD):

FH> I would also like to be able to open files by directly double
FH> clicking in a file browser.(There is a plugin that claims to do
FH> this. I never managed it to work and it uses some rmi calls to make
FH> calls inside IDEA)
Not RMI, just simple socket transfering, FileAssociations work only for
Ariadna.

--
Alexey Efimov, Java Developer
Tops-BI
http://www.topsbi.ru


0
Comment actions Permalink

Vinay Moharil wrote:

Is there a way to use IntelliJ as a Java/JSP editor without having to create a project and still get some basic support like smart-completion from JDK etc.? Quite often I need to edit a single file when IntelliJ is not running already. To open intelliJ and a project takes 4-5 mins and lot of memory. This forces me to use vi/emacs/ultra-edit etc. as the editor but these editors do not do smart completion etc. as well as IDEA (surprise surprise)

What I would like to do is open intellij, not load a project, open a file and be able to get basic support such as JDK smart completion e.g.

String s = "Hello World";
String s1 = s.sub<ctrl+space>

Is this possible today? How can I do this?

A workaround to achieve a similar effect is to create a separate project
with the absolute minimum you need, and don't include all the other
project files. Also, you would set IDEA not to automatically load the
last opened project on start (see IDE General Settings, first option).
Then you could open IDEA, select the simplified project from the File
menu and open it in no time. I use this all the time to work on simple
projects aside from the big ones I'm working on.

--
Rob Harwood
Software Developer
JetBrains Inc.
http://www.jetbrains.com
"Develop with pleasure!"

0
Comment actions Permalink

I created an empty single java module project with content root being c:\temp. I do not have any java files in c:\temp. When I loaded the project and tried to open the file c:\dir1\File1.java, File1.java gets loaded but there is red circle around it, no gutters and no support for smart completion for standard JDK classes like String.

What does your empty project look like?

I have 3 projects for 3 cvs branches. Do I need to create 3 empty projects for each of those?

thanks

0
Comment actions Permalink

the file needs to be under your content root and the directory it's in
marked as a source directory. So, you either need to copy your file there or
change the content root.

"Vinay Moharil" <vmohar98@yahoo.com> wrote in message
news:26025412.1089210374014.JavaMail.itn@is.intellij.net...

I created an empty single java module project with content root being

c:\temp. I do not have any java files in c:\temp. When I loaded the project
and tried to open the file c:\dir1\File1.java, File1.java gets loaded but
there is red circle around it, no gutters and no support for smart
completion for standard JDK classes like String.
>

What does your empty project look like?

>

I have 3 projects for 3 cvs branches. Do I need to create 3 empty projects

for each of those?
>

thanks



0

Please sign in to leave a comment.