question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Feature Request] Provide more code action options on save

See original GitHub issue

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 the editor.codeActionsOnSave setting AFAIK. Would it be possible to add the ability to perform these actions on save?

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:8
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

5reactions
jdneocommented, Sep 23, 2020

For anyone who want to add final modifiers where possible on save, please add the following settings into your settings.json

"editor.codeActionsOnSave": {
    "source.generate.finalModifiers": true
}
0reactions
xtianus79commented, Apr 30, 2021

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.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Suggest a feature - Visual Studio (Windows)
Describes what suggestions are on Developer Community, how to make a suggestion, and how suggestions are used by Microsoft in the Visual ...
Read more >
Basic Editing in Visual Studio Code
Learn about the basic editing features of Visual Studio Code. Search, multiple selection, code formatting.
Read more >
Feature Requests
This part of the forum is to vote on future feature requests. When you create a new feature request, please add the product...
Read more >
Creating a public app for feature requests - no code required
Open the app in an anonymous window and use the form to submit a feature request. This will make the feature appear on...
Read more >
Merge request dependencies - GitLab Docs
Docs. Edit this page to fix an error or add an improvement in a merge request. ; Product. Create an issue if there's...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found