Visual Studio Code - Remove blank lines from code

前端 未结 1 1482
忘了有多久
忘了有多久 2020-12-17 05:16

I use Visual Studio Code as my preferred text editor and I have ran into a problem with regards to the formatting. I have copied code from one file and pasted into another,

相关标签:
1条回答
  • 2020-12-17 05:35

    Follow the steps

    1. Press Ctrl+H (quick replace).
    2. Click "Use Regular Expressions".
    3. In Find specify "^$\n"
    4. Click "Replace All". All Blank lines will be deleted.

    0 讨论(0)
提交回复
热议问题