You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I could set up to autoformat my code upon save. However, import lines were not sorted.
From the docs I could figure out how to do it: move the cursor on an input line and press Ctrl+q Ctrl+s. But how to get it automatically? When I save my code, I wanted it fully autoformatted: 1) format the code, and 2) sort the import lines.
Actually, it's possible, but I had to ask it on a forum. Add these lines to your settings.json:
I could set up to autoformat my code upon save. However, import lines were not sorted.
From the docs I could figure out how to do it: move the cursor on an input line and press
Ctrl+q Ctrl+s
. But how to get it automatically? When I save my code, I wanted it fully autoformatted: 1) format the code, and 2) sort the import lines.Actually, it's possible, but I had to ask it on a forum. Add these lines to your
settings.json
:Please add it to the documentation so people find it easily.
The text was updated successfully, but these errors were encountered: