This issue has been fixed in Prettier 1.15. input const foo = html ` Architecto rerum $ Do not break Flow typecast comments ( #5280, #5290 by parentheses that surrounds Flow typecast comments were sometimes removed, This release also adds support for the html template tag (or a “tag” comment containing HTML): Note that framework-specific formatting won't be triggered in -parser html. Formats a HTML string/file with your desired indentation level. You will have to manually specify which parser to use via the overrides field. From Edit Menu, select Replace or use a short cut key (command + Option + F on Mac or Ctrl + H on Windows) In the find box type (\s). Make sure your filename matches the correct parser (especially for Angular users) if it does not, Here are step-by-step instructions to remove those empty lines: Open your code in Visual Studio Code. Here's the default patterns for HTML, Vue, and Angular: Prettier uses filename to infer which parser to use.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |