idea shortcut replacement

up-e6265a55f191fe38bdb3ae49cac43d33811.png

idea delete all comments

1. Delete all (including /**/ and // and multiple lines)

/\*([^*]|[\r\n]|(\*+([^*/]|[\r\n])))*\*+/|[ \t]*//.*

2. Delete all (excluding single-line comments (excluding domain name//))

(/\*([^*]|[\r\n]|(\*+([^*/]|[\r\n])))*\*+/)

3. Only delete a single line (including the domain name)

(//)([^\n]*)

idea to delete blank lines in the code

^\s*\n

Guess you like

Origin blog.csdn.net/qq_25231683/article/details/131005551