vscode tips

1. regex replace

question:

replace following line in left to its right part.

[SYS_write]   sys_write,    -> [SYS_write]   "write",

solution:

find regex:         ](\s*)sys_(\w+),

replace regex:   ]$1"$2",

use $1 to refer match group.

note in notepad++, it use \1 to refer match group.

2. search file

short cut ctrl+p (ctrl+e), see link and link for other search in item 3.

3. Search for symbol (CTRL + T)

Search local symbol (CTRL + SHIFT + O)

Search by reference (SHIFT + F12)

4. multiline edit: Shift+Alt+↑/↓ on linux, see link

发布了34 篇原创文章 · 获赞 0 · 访问量 2万+

猜你喜欢

转载自blog.csdn.net/hfyinsdu/article/details/104614271
今日推荐