Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Add option to use default Java import optimizer#1118

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Open
ohle wants to merge3 commits intogoogle:master
base:master
Choose a base branch
Loading
fromohle:optimize-imports-optionally

Conversation

ohle
Copy link

@ohleohle commentedJul 5, 2024
edited
Loading

With v1.16.0, the Intellij plugin started automatically reformatting imports with no option to disable that. Before v1.16.0, it was possible to use custom import rules via Intellij settings, but these are now overridden bygoogle-java-format.

See for example issue#986. This means that for code bases that were usinggoogle-java-format <1.16.0 and custom import rules, it is impossible to updategoogle-java-format.

This pull request adds a checkbox to the Intellij plugin's settings (default on) that, when off, will fall back to Intellij's default import optimizer, enabling such projects to use current versions ofgoogle-java-format with their custom import rules.

Fixes#986

@ohleohle changed the titleAdd option to use default Java import optimizerllyAdd option to use default Java import optimizerJul 5, 2024
@thclmnt
Copy link

I would love this to be an option

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers
No reviews
Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

Provide an option to disable import ordering or customize order
2 participants
@ohle@thclmnt

[8]ページ先頭

©2009-2025 Movatter.jp