|
1 |
| -[](https://plugins.jetbrains.com/plugin/pluginId) |
2 |
| -[](https://github.com/xdev-software/template-placeholder/actions/workflows/check-build.yml?query=branch%3Adevelop) |
3 |
| -[](https://sonarcloud.io/dashboard?id=xdev-software_template-placeholder) |
4 |
| -[](https://plugins.jetbrains.com/plugin/pluginId/reviews) |
| 1 | +[](https://plugins.jetbrains.com/plugin/22113) |
| 2 | +[](https://github.com/xdev-software/intellij-plugin-save-actions/actions/workflows/check-build.yml?query=branch%3Adevelop) |
| 3 | +[](https://sonarcloud.io/dashboard?id=xdev-software_intellij-plugin-save-actions) |
| 4 | +[](https://plugins.jetbrains.com/plugin/22113/reviews) |
5 | 5 |
|
6 |
| -# <img alt="Plugin icon" src="./src/main/resources/META-INF/pluginIcon.svg" height="30"> template-placeholder |
| 6 | +# <img alt="Save Actions Plugin icon light" src="./src/main/resources/META-INF/pluginIcon.svg" height="30"> Save Actions X |
7 | 7 |
|
| 8 | +> [!NOTE] |
| 9 | +> This plugin is a fork of [dubreuia/intellij-plugin-save-actions](https://github.com/dubreuia/intellij-plugin-save-actions) and [fishermans/intellij-plugin-save-actions](https://github.com/fishermans/intellij-plugin-save-actions) and is kept in maintenance mode: |
| 10 | +> * Keep the plugin up-to-date with the latest IDEA versions |
| 11 | +> * Distribute the plugin on the IDEA marketplace |
| 12 | +> * Fix serious bugs |
| 13 | +> * Keep the repo in sync with XDEV's standards |
| 14 | +> * Hardly used features may be removed to speed up development |
| 15 | +> |
| 16 | +> There is no guarantee that work outside of this scope will be done. |
8 | 17 |
|
| 18 | +Supports configurable, Eclipse like, save actions, including "optimize imports", "reformat code", "rearrange code", "compile file" and some quick fixes like "add / remove 'this' qualifier", etc. The plugin executes the configured actions when the file is synchronized (or saved) on disk. |
| 19 | + |
| 20 | +Using the save actions plugin makes your code cleaner and more uniform across your code base by enforcing your code style and code rules every time you save. The settings file (see [files location](./USAGE.md#files-location)) can be shared in your development team so that every developer has the same configuration. |
| 21 | + |
| 22 | +The code style applied by the save actions plugin is the one configured your settings at "File > Settings > Editor > Code Style". For some languages, custom formatter (Dartfmt, Prettier, etc.) may also be triggered by the save actions plugin. See the [Editor Actions](./USAGE.md#editor-actions) configuration for more information. |
| 23 | + |
| 24 | +## Features |
| 25 | + |
| 26 | +### All JetBrains products |
| 27 | + |
| 28 | +- Optimize imports |
| 29 | +- Run on file save, shortcut, batch (or a combination) |
| 30 | +- Run on multiple files by choosing a scope |
| 31 | +- Reformat code (whole file or only changed text) |
| 32 | +- Rearrange code (reorder methods, fields, etc.) |
| 33 | +- Include / exclude files with regex support |
| 34 | +- Works on any file type (Java, Python, XML, etc.) |
| 35 | +- Launch any editor action using "quick lists" |
| 36 | +- Uses a settings file per project you can commit (see [Files location](./USAGE.md#files-location)) |
| 37 | +- Available keymaps and actions for activation (see [Keymap and actions](./USAGE.md#keymap-and-actions)) |
| 38 | + |
| 39 | +<img src="./assets/intellij-save-actions-plugin-settings-page.png" alt="Save actions plugin settings page" height=500 /> |
| 40 | + |
| 41 | +### Java IDE products |
| 42 | + |
| 43 | +Works in JetBrains IDE with Java support, like Intellij IDEA and AndroidStudio. |
| 44 | + |
| 45 | +- Compile project after save (if compiling is available) |
| 46 | +- Reload debugger after save (if compiling is available) |
| 47 | +- Eclipse configuration file `.epf` support (see [Eclipse support](./USAGE.md#eclipse-support)) |
| 48 | +- Automatically fix Java inspections (see [Java quick fixes](./USAGE.md#java-fixes)) |
| 49 | + |
| 50 | +<img src="./assets/intellij-save-actions-plugin-settings-page-java.png" alt="Save actions plugin settings page for Java" height=600 /> |
9 | 51 |
|
10 | 52 | ## Installation
|
11 |
| -[Installation guide for the latest release](https://github.com/xdev-software/template-placeholder/releases/latest#Installation) |
| 53 | +[Installation guide for the latest release](https://github.com/xdev-software/intellij-plugin-save-actions/releases/latest#Installation) |
12 | 54 |
|
13 | 55 | > [!TIP]
|
14 |
| -> [Development versions](https://plugins.jetbrains.com/plugin/pluginId/versions/snapshot) can be installed by [adding the ``snapshot`` release channel as a plugin repository](https://www.jetbrains.com/help/idea/managing-plugins.html#repos):<br/> |
| 56 | +> [Development versions](https://plugins.jetbrains.com/plugin/22113/versions/snapshot) can be installed by [adding the ``snapshot`` release channel as a plugin repository](https://www.jetbrains.com/help/idea/managing-plugins.html#repos):<br/> |
15 | 57 | > ``https://plugins.jetbrains.com/plugins/snapshot/list``
|
16 | 58 |
|
| 59 | +## Usage |
| 60 | + |
| 61 | +Read the [full usage guide here](./USAGE.md). |
| 62 | + |
17 | 63 | ## Contributing
|
18 | 64 | See the [contributing guide](./CONTRIBUTING.md) for detailed instructions on how to get started with our project.
|
0 commit comments