Replace 在记事本++或vscode中查找并替换

Replace 在记事本++或vscode中查找并替换,replace,visual-studio-code,notepad++,Replace,Visual Studio Code,Notepad++,对不起,各位,请使用代码使其更加清晰和方便。我有 pre-fec-ber-min { description "pm for terminal-device, includes minimum only"; } post-fec-ber-min { description "pm for terminal-device, includes minimum only"; } all { description "all of pm parameter type"; } 我想把它改成

对不起,各位,请使用代码使其更加清晰和方便。我有

pre-fec-ber-min { description "pm for terminal-device, includes minimum only"; }
post-fec-ber-min { description "pm for terminal-device, includes minimum only"; }      
all { description "all of pm parameter type"; }
我想把它改成

pre-fec-ber-min
post-fec-ber-min
all

目的是删除所有括号,这样我就可以复制它来定义enum。请告诉我在记事本++或vscode中查找和替换时应该写什么?

精确匹配可能使用以下查找和替换:

Find:    ^(\w+)\s+\{.*?\}
Replace: $1
这将捕获行开头的第一个单词术语,删除其后括号内的表达式

在VSCode中:

选择1个打开的大括号{ 选择所有打开的大括号Shift+Ctrl+L 选择直到行尾:Shift+End 通过退格删除退格 停止多光标:Esc
最好将代码前后显示为实际代码,而不是图像。您应该显示您试图解决问题的方法。@若要查看这些默认快捷方式,请查找“选择”键All@Toto-从文档中:Ctrl+Shift+L选择当前选择编辑器的所有匹配项。action.selectHighlightsDEFAULT@Toto:VSC v1.42有一些v1.43的问题好吧,我的评论是指记事本++。算了吧;