In emacs, there's an action called just-one-space
which is binded to Meta+Space .
It is used to
Delete all spaces and tabs around point, leaving one space (or N spaces).
I used this action a lot in emacs and it's quite useful for me.
I was wondering whether there are also such actions in intelliJ?
(The use case is like this:
Line1
Line2
when I use Ctrl+k at the end of Line1 twice, the text becomes this:
Line1 Line2
I need several actions to delete the spaces to make it like this:
Line1 Line2
IntelliJ can use regex, so
Search: \b\s+\b
Replace: <space>
刚发现Join Lines
可能就是我需要的。
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.