Can I run a single file without rebuilding the whole project?

I often write little classes where I test my logic before sticking it into a permanent class.

Testing regexes is a common reason. (I sure love regexes...)

I can't figure out how to make intellij run just the class I'm actually on when i hit ctrlshiftf10 without rebuilding the whole project.

It's not too much effort to create an entirely new project, but it is a bit tedious.

Anyway of running just the class I'm on?

Cheers,
Peter

1 comment
Comment actions Permalink

Hello ProggerPete,

I often write little classes where I test my logic before sticking it
into a permanent class.

Testing regexes is a common reason. (I sure love regexes...)

I can't figure out how to make intellij run just the class I'm
actually on when i hit ctrlshiftf10 without rebuilding the whole
project.

It's not too much effort to create an entirely new project, but it is
a bit tedious.

Anyway of running just the class I'm on?


Create a run configuration for your class and uncheck "Before launch | Make".

--
Dmitry Jemerov
Development Lead
JetBrains, Inc.
http://www.jetbrains.com/
"Develop with Pleasure!"


0

Please sign in to leave a comment.