compile on file save

In eclipse it is possible to compile a file when it's saved. Eclipse will also recompile files that depend on that file.

Is it possible to have the same behaviour in intellij idea?

thanks

1
3 comments

With IntelliJ IDEA it's the other way round: the file isn't compiled
because you save it, but it's saved because you compile it. You don't
have to care about saving files - IDEA does that for you whenever it's
appropriate. So instead of invoking 'save' to have your files compiled,
you simply invoke 'compile' and IDEA saves your files prior to
compiling. Or even better just invoke 'run' or 'debug', IDEA then
automatically first saves and then compiles your changed files.

0

Sure, shortcut is ctrl-shift-f9. You can specify whether dependent files are compiled in settings -> project setting -> compiler.

If you like, you can remap the shortcut to ctrl-s.

0
Avatar
Permanently deleted user

Eclipse will also recompile files that depend on that file.


Yes, 'make' action does this.

--
Best regards,
Eugene Zhuravlev
Software Developer
JetBrains Inc.
http://www.jetbrains.com
"Develop with pleasure!"


0

Please sign in to leave a comment.