使用Prettier:任何人都知道键盘快捷键可以在高亮显示VSCode中自动格式化单个javascript块,而不必使用Prettier保存整个文件以使用自动格式化。
答案:这是在Mac中进行代码块选择Command K,F。