kasecato / vscode-intellij-idea-keybindings

Port of IntelliJ IDEA key bindings for VS Code.
https://marketplace.visualstudio.com/items?itemName=k--kato.intellij-idea-keybindings
MIT License
823 stars 137 forks source link

Reformat document "ctrl + alt + l" is not working #276

Closed londbell closed 1 year ago

londbell commented 2 years ago

vscode version: 1.71.1(Universal) vscode-intellij-idea-keybindings version:v1.5.3 WIth Vim version: "v1.23.2

Now it can only reformat one line after "ctrl + alt + l" even I haven't select some codes; After change the keybindings for "formatSelection" from "ctrl+alt+l" to "ctrl+alt+y", then I can reformat the whole document after "ctrl + alt + l".

huowenxuan commented 2 years ago

Is just work on the current line v1.5.2 ok

long76 commented 2 years ago

add pr https://github.com/kasecato/vscode-intellij-idea-keybindings/pull/278

@londbell before release add && editorHasSelection in when condition for editor.action.formatSelection

kasecato commented 1 year ago

@londbell @huowenxuan @long76 Thanks for your report, released on v1.5.4. Please check it.

AAverin commented 1 year ago

Does this issue also affect macs? I am on 1.5.3 at the moment and cmd+shift+l formatting does something weird.

kasecato commented 1 year ago

yes, please use v1.5.4. The command is cmd+alt+l

long76 commented 1 year ago

@londbell @huowenxuan @long76 Thanks for your report, released on v1.5.4. Please check it.

All ok, thanks!

londbell commented 1 year ago

@londbell @huowenxuan @long76 Thanks for your report, released on v1.5.4. Please check it.

All ok, thanks!

annisschen commented 1 year ago

i use v1.5.4, but it still doesn't work.

dudul commented 2 months ago

Format selection doesn't work for me on v1.7.2. vscode version: windows 1.91.0