Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Save actions in IntelliJ IDEA

The only thing that exists in Eclipse, which I miss in IntelliJ IDEA is "save actions" - possibility to do some actions (usually formatting) when a file is saved.

Is there some plugin or configuration for IDEA which enables such functionality?

like image 902
Pavel Bernshtam Avatar asked Sep 14 '10 08:09

Pavel Bernshtam


People also ask

Where do IntelliJ projects save?

By default, IntelliJ IDEA stores user-specific files for each IDE instance (configuration, caches, plugins, logs, and so on) in the user's home directory. However, you can change the location for storing those files, if necessary.

What are actions in IntelliJ?

Actions The IntelliJ Platform provides the concept of actions. An action is a class derived from AnAction , whose actionPerformed() method is called when its menu item or toolbar button is selected. Actions are the most common way for a user to invoke the functionality of your plugin.

How do I organize my code in IntelliJ?

Rearrange codePress Ctrl+Alt+S to open the IDE settings and select Editor | Code Style. In the editor, select the code entries you want to rearrange and from the main menu, select Code | Rearrange Code.


1 Answers

You will need to Install Save Actions plugin for Intellij IDEA

  1. Click: ctrl+shift+a
  2. Type: Plugins
  3. Click: enter Plugins
  4. Click: Browse repositories
  5. Type: Save Actions to search field
  6. Click "install plugin" after you found it
  7. Restart intellij idea

Save actions now work. You can configure them in File -> Settings -> Other settings

like image 147
justnpT Avatar answered Sep 22 '22 09:09

justnpT