-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'develop' into update-from-template-merged
- Loading branch information
Showing
143 changed files
with
7,258 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,4 +22,4 @@ | |
<RunAsTest>false</RunAsTest> | ||
<method v="2" /> | ||
</configuration> | ||
</component> | ||
</component> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
## 1.4.0 | ||
* Dropped support for IntelliJ versions < 2024.3 | ||
* This is required to fix a few deprecations and remove some workarounds #171 | ||
|
||
## 1.3.1 | ||
* Fix IDE hang when projects with different "Process files asynchronously" are open #160 | ||
|
||
## 1.3.0 | ||
* Make it possible to run processors asynchronously #130 | ||
* This way the UI should be more responsive when processing a lot of files | ||
* May break processors that interact with the UI e.g. when showing dialogs | ||
* Don't process files during project load #145 | ||
* This should cause less race conditions due to partial project initialization | ||
* Only active on IntelliJ < 2024.3 as [the underlying problem was fixed in IntelliJ 2024.3](https://github.com/JetBrains/intellij-community/commit/765caa71175d0a67a54836cf840fae829da590d9) | ||
|
||
## 1.2.4 | ||
* Dropped support for IntelliJ versions < 2024.2 | ||
* Removed deprecated code that was only required for older IDE versions | ||
|
||
## 1.2.3 | ||
* Fix "run on multiple files" not working when the file is not a text file #129 | ||
|
||
## 1.2.2 | ||
* Workaround scaling problem on "New UI" [#26](https://github.com/xdev-software/intellij-plugin-template/issues/26) | ||
|
||
## 1.2.1 | ||
* Fixed ``ToggleAnAction must override getActionUpdateThread`` warning inside IntelliJ 2024+ | ||
* Dropped support for IntelliJ versions < 2023.2 | ||
|
||
## 1.2.0 | ||
* Run GlobalProcessors (e.g. Reformat) last so that code is formatted correctly #90 | ||
* Dropped support for IntelliJ versions < 2023 | ||
|
||
## 1.1.1 | ||
* Shortened plugin name - new name: "Save Actions X" | ||
* Updated assets | ||
|
||
## 1.1.0 | ||
* Removed "Remove unused suppress warning annotation" | ||
* This option never worked #64 | ||
* Allows usage of the plugin with IntelliJ IDEA 2024+ #63 | ||
* If you used this option you should remove the line ``<option value="suppressAnnotation" />`` inside ``saveactions_settings.xml`` | ||
* Allow compilation with Java 21 | ||
|
||
## 1.0.5 | ||
* Fixed ``Add class qualifier to static member access outside declaring class`` not working in combination with Qodana plugin #25 | ||
|
||
## 1.0.4 | ||
* Fixed pluginIcon being not displayed #35 | ||
* Improved support of Android Studio (until a 2023 version is released) #27 | ||
|
||
## 1.0.3 | ||
* Fixed problem in combination with Qodana plugin #25 | ||
* Improved compatibility and cleaned up code #27 | ||
|
||
## 1.0.2 | ||
* Fixed missing display name which causes an error when multiple configurable plugins are installed #20 | ||
|
||
## 1.0.1 | ||
* Fixed ``Change visibility of field or method to lower access`` not working #14 | ||
|
||
## 1.0.0 | ||
<i>Initial release</i> | ||
* 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) | ||
* ⚠️ This plugin is not compatible with the old/deprecated/forked one.<br/>Please ensure that the old plugin is uninstalled. | ||
* Rebrand | ||
* Updated copy pasted classes from IDEA | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,64 @@ | ||
[![Latest version](https://img.shields.io/jetbrains/plugin/v/pluginId?logo=jetbrains)](https://plugins.jetbrains.com/plugin/pluginId) | ||
[![Build](https://img.shields.io/github/actions/workflow/status/xdev-software/template-placeholder/check-build.yml?branch=develop)](https://github.com/xdev-software/template-placeholder/actions/workflows/check-build.yml?query=branch%3Adevelop) | ||
[![Quality Gate Status](https://sonarcloud.io/api/project_badges/measure?project=xdev-software_template-placeholder&metric=alert_status)](https://sonarcloud.io/dashboard?id=xdev-software_template-placeholder) | ||
[![Feel free to leave a rating](https://img.shields.io/jetbrains/plugin/r/rating/pluginId?style=social&logo=jetbrains&label=Feel%20free%20to%20leave%20a%20rating)](https://plugins.jetbrains.com/plugin/pluginId/reviews) | ||
[![Latest version](https://img.shields.io/jetbrains/plugin/v/22113?logo=jetbrains)](https://plugins.jetbrains.com/plugin/22113) | ||
[![Build](https://img.shields.io/github/actions/workflow/status/xdev-software/intellij-plugin-save-actions/check-build.yml?branch=develop)](https://github.com/xdev-software/intellij-plugin-save-actions/actions/workflows/check-build.yml?query=branch%3Adevelop) | ||
[![Quality Gate Status](https://sonarcloud.io/api/project_badges/measure?project=xdev-software_intellij-plugin-save-actions&metric=alert_status)](https://sonarcloud.io/dashboard?id=xdev-software_intellij-plugin-save-actions) | ||
[![Feel free to leave a rating](https://img.shields.io/jetbrains/plugin/r/rating/22113?style=social&logo=jetbrains&label=Feel%20free%20to%20leave%20a%20rating)](https://plugins.jetbrains.com/plugin/22113/reviews) | ||
|
||
# <img alt="Plugin icon" src="./src/main/resources/META-INF/pluginIcon.svg" height="30"> template-placeholder | ||
# <img alt="Save Actions Plugin icon light" src="./src/main/resources/META-INF/pluginIcon.svg" height="30"> Save Actions X | ||
|
||
> [!NOTE] | ||
> 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: | ||
> * Keep the plugin up-to-date with the latest IDEA versions | ||
> * Distribute the plugin on the IDEA marketplace | ||
> * Fix serious bugs | ||
> * Keep the repo in sync with XDEV's standards | ||
> * Hardly used features may be removed to speed up development | ||
> | ||
> There is no guarantee that work outside of this scope will be done. | ||
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. | ||
|
||
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. | ||
|
||
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. | ||
|
||
## Features | ||
|
||
### All JetBrains products | ||
|
||
- Optimize imports | ||
- Run on file save, shortcut, batch (or a combination) | ||
- Run on multiple files by choosing a scope | ||
- Reformat code (whole file or only changed text) | ||
- Rearrange code (reorder methods, fields, etc.) | ||
- Include / exclude files with regex support | ||
- Works on any file type (Java, Python, XML, etc.) | ||
- Launch any editor action using "quick lists" | ||
- Uses a settings file per project you can commit (see [Files location](./USAGE.md#files-location)) | ||
- Available keymaps and actions for activation (see [Keymap and actions](./USAGE.md#keymap-and-actions)) | ||
|
||
<img src="./assets/intellij-save-actions-plugin-settings-page.png" alt="Save actions plugin settings page" height=500 /> | ||
|
||
### Java IDE products | ||
|
||
Works in JetBrains IDE with Java support, like Intellij IDEA and AndroidStudio. | ||
|
||
- Compile project after save (if compiling is available) | ||
- Reload debugger after save (if compiling is available) | ||
- Eclipse configuration file `.epf` support (see [Eclipse support](./USAGE.md#eclipse-support)) | ||
- Automatically fix Java inspections (see [Java quick fixes](./USAGE.md#java-fixes)) | ||
|
||
<img src="./assets/intellij-save-actions-plugin-settings-page-java.png" alt="Save actions plugin settings page for Java" height=600 /> | ||
|
||
## Installation | ||
[Installation guide for the latest release](https://github.com/xdev-software/template-placeholder/releases/latest#Installation) | ||
[Installation guide for the latest release](https://github.com/xdev-software/intellij-plugin-save-actions/releases/latest#Installation) | ||
|
||
> [!TIP] | ||
> [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/> | ||
> [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/> | ||
> ``https://plugins.jetbrains.com/plugins/snapshot/list`` | ||
## Usage | ||
|
||
Read the [full usage guide here](./USAGE.md). | ||
|
||
## Contributing | ||
See the [contributing guide](./CONTRIBUTING.md) for detailed instructions on how to get started with our project. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.