Remove newlines from selected code (Shortcut)

已回答

So I'd like to do something like this, that when I have the code below I can select it and with a shortcut. Make it to be in one line something like (Snippet 2).

(\foo ->
Component.add foo
bar
baz
)

Snippet 2:

(\foo -> Component.add foo        bar         baz)
1

You can try using Ctrl + Shift + J shortcut.

The action is called Join Lines in keymap settings. (Settings/Preferences | Keymap)

4

请先登录再写评论。