![]() ![]() ![]() Teekin Apr 8 at 12:39 6 Use vs-code default shortcut keys ctrl+k with ctrl+shift+s (windows) for saving without formatting. Every single IDE makes this incredibly difficult. If you run into parser errors, you may find it's because the plugin doesn't support inline ĭoing that will ignore the section inside those comments, but still format everything else correctly on save. Visual Studio Code has built in formatters for TypeScript, C and Go, but I want formatters for html, scss and javascript as well. 1 There should be a universal law that forces all IDEs and editors to include one setting to disable all auto-everything. If you want to format everything at once, you can also run Prettier on the whole template directory by running npx prettier -write "templates/**/*.twig" And that's it! Your twig files will now be automatically formatted when you save them.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |