-
Notifications
You must be signed in to change notification settings - Fork 465
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Feature Request] Provide more code action options on save #1379
[Feature Request] Provide more code action options on save #1379
Comments
I believe we can give BTW, IMO this code action should be grouped as one of the source actions instead of a refactoring. (Considering it's operating the whole document and this pattern is similar with other source actions like @fbricon @akaroml @testforstephen @Eskibear what do you think? |
Hi @ghokun, would you mind to create a new issue for this request? The on save code action is a big topic and track all the actions in one issue is not that convenient. I think this one is mainly for the |
For anyone who want to add final modifiers where possible on save, please add the following settings into your "editor.codeActionsOnSave": {
"source.generate.finalModifiers": true
} |
I don't get it. Is there other code clean up and save actions that are on save. This post is almost over a year old. |
In the Eclipse Java configuration, under Java -> Editor -> Save Actions, there's an "Additional Actions" option which allows one to configure a wide range of additional code formatting options to be applied on save (e.g. "Use modifier for
final
where possible"). Since these options aren't part of the Eclipse formatter XML settings, there's no way to have them performed on save in Visual Studio Code. Most are available as code actions, but can't be added to theeditor.codeActionsOnSave
setting AFAIK. Would it be possible to add the ability to perform these actions on save?The text was updated successfully, but these errors were encountered: