How to replace/delete lines starts with particular word in Eclipse?

后端 未结 3 2238
轮回少年
轮回少年 2021-02-19 23:55

Some cases, I have to replace/delete lines starts with particular word like \'public\' \'private\' Java classes or for XML file.

           


        
3条回答
  •  隐瞒了意图╮
    2021-02-20 00:26

    Use the following regular expression to hide lines starting with 'public' -

    Regex Line Replacement

    • public(.*)\R

    Eclipse Config

    Example

提交回复
热议问题