Questions tagged «nuxt.js»

20
为什么Prettier不格式化VSCODE中的代码?
在安装和启用了ESlint和Prettier的Nuxt应用程序中,我切换到了Visual Studio Code编辑器。 当我打开.vue文件并按CMD+ Shift+P 并选择“格式化文档”时,我的文件根本没有被格式化。 我的 .prettierrc 设置: { "tabWidth": 2, "semi": false, "singleQuote": true } 我有很多源代码行,我无法手动设置它们的格式。我究竟做错了什么?
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.