How do I delete specific lines in Notepad++?

前端 未结 8 1451
太阳男子
太阳男子 2020-11-28 19:52

I\'m cleaning up some code files (C#) and want to remove the regions. And I would like to delete all the lines that have the string \'#region\'. That\'s just an example, and

8条回答
  •  隐瞒了意图╮
    2020-11-28 20:28

    Jacob's reply to John T works perfectly to delete the whole line, and you can Find in Files with that. Make sure to check "Regular expression" at bottom.

    Solution: ^.*#region.*$

提交回复
热议问题