vscode快捷打出console.log() vscode快速输出

1、文件->首选项->用户代码片段

vscode快捷打出console.log() vscode快速输出_第1张图片

2、在搜索栏里输入javascript.json ,找到javascript.json文件,并打开

vscode快捷打出console.log() vscode快速输出_第2张图片

3、把原来注释的代码片段打开,配置成自己喜欢的

prefix:前缀,比如我的是con,那么输入con提示里第一个就是console.log,敲下空格,就可以快捷输出了
body:body的内容为输入模板。$1是快捷输出后光标停留的地方

vscode快捷打出console.log() vscode快速输出_第3张图片
vscode快捷打出console.log() vscode快速输出_第4张图片

你可能感兴趣的:(软件,vscode,javascript,前端)