VS Arduino
Visual Micro >> Visual Studio 2017, 2019, 2022 >> pritty tidy html code indentation VS plugin
https://www.visualmicro.com/forums/YaBB.pl?num=1634122173

Message started by Christoph on Oct 13th, 2021 at 10:49am

Title: pritty tidy html code indentation VS plugin
Post by Christoph on Oct 13th, 2021 at 10:49am
Hello everyone :)

trying to find some pluging for visual studio 2019 (no visual studio code) where I can indent my selected html code .. any ideas?

My html code is included in an const chart index_html[] variable and best way would be indent selected code. But in case its not important for me, just to get my html code in pritty style to better see whats going on  8-)

Didnt found any usefull plugin, and all goggle search request with no success only for VS Code

Many thanks in advance,
Christoph

Title: Re: pritty tidy html code indentation VS plugin
Post by Simon@Visual Micro on Oct 13th, 2021 at 11:05am
If you put the code into a new HTML file in Visual Studio, you can then use the Auto Format Chord Ctrl+K then Ctrl+D to auto format the code.

This applies to all languages installed in Visual Studio.

Title: Re: pritty tidy html code indentation VS plugin
Post by Christoph on Oct 13th, 2021 at 11:09am
https://www.freeformatter.com/html-validator.html

despite plugin would be more convenient

Title: Re: pritty tidy html code indentation VS plugin
Post by Christoph on Oct 14th, 2021 at 5:59am
Thank you very much for your fast reply!! So ther is no every known common plugin. Copy past to onlone formater is the easier way for now.

Title: Re: pritty tidy html code indentation VS plugin
Post by Simon@Visual Micro on Oct 14th, 2021 at 9:26am
The auto formatting chords and indentation options on the Edit Menu in VS are built into VS so no plugin is needed.

VS also offers intellisense hints, warnings and errors when coding in HTML, as long as the DOCTYPE tag is present in the document.

VS Arduino » Powered by YaBB 2.6.12!
YaBB Forum Software © 2000-2024. All Rights Reserved.