Skip to content
This repository has been archived by the owner on Jul 25, 2022. It is now read-only.

Restore scalafmt on save #74

Closed
cquiroz opened this issue Jan 27, 2019 · 4 comments
Closed

Restore scalafmt on save #74

cquiroz opened this issue Jan 27, 2019 · 4 comments

Comments

@cquiroz
Copy link
Contributor

cquiroz commented Jan 27, 2019

It seems with metals 4.0 scalafmt could be enabled in Atom again. That would be very useful

@cquiroz
Copy link
Contributor Author

cquiroz commented Jun 4, 2019

I'd really like to get this back. Perhaps if you give me some pointers I could try working on it

@laughedelic
Copy link
Owner

Hi @cquiroz. scalafmt should work as before, but Metals doesn't have a config setting for running it on save. You can enable it in the ide-ui package though:

Screenshot 2019-06-23 at 20 12 18

@laughedelic
Copy link
Owner

The difference is that this will enable formatting on save for any other language servers if you use any.
You can also run formatting manually with a hotkey (see it below the ide-ui settings).

Of course, it still can be implemented as a specialized setting in the ide-scala plugin. Let me know if none of the above options fit you and you still want this feature.

@cquiroz
Copy link
Contributor Author

cquiroz commented Jun 23, 2019

I see, that option should be more than enough. Thanks

@cquiroz cquiroz closed this as completed Jun 23, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants