简体   繁体   English

更漂亮的代码格式化程序不适用于 javscript 语言或任何其他语言上的 Vs 代码,即使是保存格式或任何其他形式

[英]Prettier Code formatter not working on Vs Code on javscript language or any other even on format on save or any other form

I am trying to use Prettier on VS Code for Linux(Ubuntu) when formatting ReactJs Code which is Javascript but there is a problem or an error that keeps on occurring without any explanation or reason the output it shows is:在格式化 ReactJs 代码(即 Javascript)时,我尝试在 Linux(Ubuntu)的 VS Code 上使用 Prettier,但在没有任何解释或原因的情况下,出现问题或错误继续发生,Z78E6221F6393D1356681 它显示为 DB39D8: Vs代码给出的解释图我看不懂

**["INFO" - 9:25:54 am] Enabling prettier for range supported languages
[
  "graphql",
  "javascript",
  "javascriptreact",
  "json",
  "typescript",
  "typescriptreact"
]
["INFO" - 9:25:57 am] Loaded module 'prettier@1.19.1' from '/media/chetan/New Volume1/Pdhai/Projects/MUltiLevel Oauth/node_modules/prettier/index.js'
["INFO" - 9:25:58 am] Formatting /media/chetan/New Volume1/Pdhai/Projects/MUltiLevel Oauth/models/User.js
["INFO" - 9:25:58 am] Loaded module 'prettier@1.19.1' from '/media/chetan/New Volume1/Pdhai/Projects/MUltiLevel Oauth/node_modules/prettier/index.js'
["INFO" - 9:25:58 am] Using ignore file (if present) at /media/chetan/New Volume1/Pdhai/Projects/MUltiLevel Oauth/.prettierignore
["INFO" - 9:25:59 am] File Info:
{
  "ignored": false,
  "inferredParser": "babel"
}
["INFO" - 9:26:04 am] Require config set to true and no config present. Skipping file.**

Go to extension settings and find this one. Go 到扩展设置并找到这个。 Uncheck the box.取消选中该框。 Should help;应该有帮助; enter image description here在此处输入图像描述

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 可在JsBin中运行的代码,但不能在任何其他浏览器中运行 - Code working in JsBin but not any other browsers 如何在 vs 代码中完全删除漂亮的代码格式化插件? - how to remove prettier code-formatter plugin completely in vs code? 想通过使用更漂亮的代码格式化程序 VS CODE 来使用单引号 - want to use single quotes by using prettier code formatter VS CODE 为什么 Prettier 不在 VS Code 中格式化代码? - Why does Prettier not format code in VS Code? 如何使用 Firebug 或任何其他扩展程序查找哪些 Javascript 代码触发表单提交? - How to find with Firebug or any other extension what Javascript code triggers form submission? Javascript Testing Framework是关于测试javascript代码还是使用javascript测试以某种其他编程语言编写的任何应用程序? - Is Javascript Testing Framework about testing javascript code or using javascript to test any application written in some other programming language? 用any-OTHER-LANGUAGE写并输出到javascript? - write in ANY-OTHER-LANGUAGE and output to javascript? 什么是后代运算符? 它是在 javascript 中还是在任何其他语言中? - What is a Descendant operator? Is it in javascript Or in any other language? 使用Javascript的Live Calendar(不是任何其他语言) - Live Calendar using Javascript ( not any other language) 使用PHP或任何其他语言上传大文件? - Uploading huge files with PHP or any other language?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM