4

VSCode 正则表达式替换的两个大坑

 2 years ago
source link: https://www.v2ex.com/t/803161
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

V2EX  ›  程序员

VSCode 正则表达式替换的两个大坑

  AndyAO · 16 分钟前 · 52 次点击
  1. 通过 [\s\S] 来跨行,这种用法是可能不起作用的,因为会漏掉\r,建议用[\w\W]
  2. 侧边栏替换面板换行的快捷键是Shift+Enter,但是编辑器上方的悬浮窗是Ctrl+Enter

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK