使用 Prettier:任何人都知道在高亮显示 VSCode 中自动格式化单个 javascript 块的键盘快捷键,而无需使用 Prettier 保存整个文件以使用自动格式化。
在 VS Code 的 Mac OS 上,它是 Option+Shift+F
答:在mac中制作代码块选择命令K,F。
Try this... in ubuntu 20.04: ----vsCode Prettier - Code formatter shortcut- key is ctrl+shift+I
in windows 10,11: ----vsCode Prettier - Code formatter shortcut- key is alt+shift+F
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.