Before logging an issue, please update to the latest release of Visual Micro from the Downloads Page.

When Logging a Support Issue in the Forum, please ensure you have also:-

  • Enabled vMicro > Compiler > Show Build Properties
  • 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
 
Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic pritty tidy html code indentation VS plugin (Read 1150 times)
Christoph
Junior Member
**
Offline


Posts: 32
Joined: Sep 4th, 2020
pritty tidy html code indentation VS plugin
Oct 13th, 2021 at 10:49am
Print Post  
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: 2174
Joined: Feb 13th, 2019
Re: pritty tidy html code indentation VS plugin
Reply #1 - Oct 13th, 2021 at 11:05am
Print Post  
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: 32
Joined: Sep 4th, 2020
Re: pritty tidy html code indentation VS plugin
Reply #2 - Oct 13th, 2021 at 11:09am
Print Post  
https://www.freeformatter.com/html-validator.html

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


Posts: 32
Joined: Sep 4th, 2020
Re: pritty tidy html code indentation VS plugin
Reply #3 - Oct 14th, 2021 at 5:59am
Print Post  
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: 2174
Joined: Feb 13th, 2019
Re: pritty tidy html code indentation VS plugin
Reply #4 - Oct 14th, 2021 at 9:26am
Print Post  
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 TopicPrint