Code Formatter (Prettier)
Tidy up messy JavaScript, CSS, HTML, Markdown or YAML in one click.
ทำงาน 100% ในเบราว์เซอร์ ไฟล์ของคุณไม่ถูกอัปโหลดไปยังเซิร์ฟเวอร์ใด ๆ
วิธีใช้ Code Formatter (Prettier)
- Paste your code into the left box.
- Choose the language, indentation and quote style.
- Click Format, then copy or download the result.
คำถามที่พบบ่อย
What is Prettier?
Prettier is an open-source (MIT) code formatter used by millions of developers. It prints code in one consistent style, so every file in a project looks the same.
Is my code uploaded anywhere?
No. Prettier runs entirely in your browser, and your code is processed on your own device.
Which languages are supported?
JavaScript and JSX, CSS, HTML, Markdown and YAML. TypeScript needs a separate parser, which is not included here.
Code Formatter (Prettier) ใช้ฟรีไหม?
ฟรี Code Formatter (Prettier) ใช้ได้ฟรี ไม่ต้องสมัคร และไม่มีลายน้ำ
ไฟล์ของฉันถูกอัปโหลดไปยังเซิร์ฟเวอร์ของคุณหรือไม่?
ไม่ การประมวลผลทั้งหมดเกิดขึ้นในเบราว์เซอร์ของคุณด้วย JavaScript และ WebAssembly ไฟล์ไม่เคยออกจากเครื่องของคุณ จึงทั้งเร็วและเป็นส่วนตัว
ใช้บนมือถือได้ไหม?
ได้ ใช้ได้กับเบราว์เซอร์รุ่นใหม่ทุกตัวบน Windows, Mac, Linux, Android และ iPhone ไฟล์ขนาดใหญ่มากอาจช้าบนมือถือรุ่นเก่า