Code Formatter (Prettier)
Tidy up messy JavaScript, CSS, HTML, Markdown or YAML in one click.
Chạy 100% trên trình duyệt. File của bạn không được tải lên bất kỳ máy chủ nào.
Cách dùng 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.
Câu hỏi thường gặp
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) có miễn phí không?
Có. Code Formatter (Prettier) hoàn toàn miễn phí, không cần đăng ký và không chèn watermark.
File của tôi có bị tải lên máy chủ của bạn không?
Không. Mọi xử lý đều diễn ra ngay trên trình duyệt của bạn bằng JavaScript và WebAssembly. File không bao giờ rời khỏi thiết bị, nhờ vậy vừa nhanh vừa riêng tư.
Có dùng được trên điện thoại không?
Có. Công cụ chạy trên mọi trình duyệt hiện đại trên Windows, Mac, Linux, Android và iPhone. File rất lớn có thể xử lý chậm trên điện thoại đời cũ.