Is there a way to delete all comments in a file using Notepad++?

后端 未结 9 2079
清歌不尽
清歌不尽 2020-12-13 04:40

Notepad++ obviously recognizes all comments as such. Is there a way to simply delete all?

Edit: Stat-R\'s bookmark method has helped greatly, not on

9条回答
  •  旧时难觅i
    2020-12-13 05:28

    I have had some luck running a macro for the above. Basically:

    • search for // (F3)
    • select to end of line (shift+end)
    • delete (delete)

    Put // into the search dialog by just searching for it once. Then record the three steps in a macro, then play it back until EOF.

    The first time I did it I had a problem, but then it worked, not sure what I did differently.

提交回复
热议问题