Welcome, Guest. Please Login or Register
Arduino IDE for Visual Studio
 
 
When Logging a Support Issue in the Forum, please ensure you have also:-
  • Enabled vMicro > Compiler > Show Build Properties and Verbose
  • Re-Compile your program with these settings enabled
 
Save the new Output to a Text File and....
  • Click the Reply button and attach as .txt file OR
  • Click here to Email us with the file attached, and a link to your post
Support requests without the output above may be impossible to answer, so please help us to help you
 
  HomeSearch Tutorials & Wiki visualmicro.com LoginHelpRegister  
 
Page Index Toggle Pages: 1
Send Topic Print
pritty tidy html code indentation VS plugin (Read 96 times)
Christoph
Junior Member
**
Offline



Posts: 21
pritty tidy html code indentation VS plugin
Oct 13th, 2021 at 11:49am
 
Hello everyone Smiley

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  Cool

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

Many thanks in advance,
Christoph
Back to top
 
 
IP Logged
 
Simon@Visual Micro
Administrator
*****
Offline



Posts: 1014
Re: pritty tidy html code indentation VS plugin
Reply #1 - Oct 13th, 2021 at 12:05pm
 
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.
Back to top
 
 
IP Logged
 
Christoph
Junior Member
**
Offline



Posts: 21
Re: pritty tidy html code indentation VS plugin
Reply #2 - Oct 13th, 2021 at 12:09pm
 
https://www.freeformatter.com/html-validator.html

despite plugin would be more convenient
Back to top
 
 
IP Logged
 
Christoph
Junior Member
**
Offline



Posts: 21
Re: pritty tidy html code indentation VS plugin
Reply #3 - Oct 14th, 2021 at 6: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.
Back to top
 
 
IP Logged
 
Simon@Visual Micro
Administrator
*****
Offline



Posts: 1014
Re: pritty tidy html code indentation VS plugin
Reply #4 - Oct 14th, 2021 at 10: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.
Back to top
 
 
IP Logged
 
Page Index Toggle Pages: 1
Send Topic Print