Quantcast
Channel: Active questions tagged code-formatting - Meta Stack Overflow
Viewing all articles
Browse latest Browse all 180

Option to format/beautify code, or automatically do so

$
0
0

Many of my edits on Stack Overflow are merely formatting improvements. Adding newlines and indents is what I do at night. However, I wonder if it's possible to automate the process. Especially people who are new to Stack Overflow and/or the language at hand seem to not bother about readable code blocks. However, for us - the people trying to help - it is quite the effort to first make the code readable and then try to answer the question.

As I see it there are two options: either immediately beautify code as soon as someone uses the Code Sample button in the toolbar, or add a Beautify Code button to the toolbar. Beautifying should only be allowed on code snippets.

I understand that an implementation might take some weeks or months to roll out, but there are many tools available exactly for this.

For some people this might seem to be a silly problem, but users who are active in the web development department should have encountered this problem many times before. Personally, I especially notice this in the Sass, CSS, HTML, XML, JavaScript, PHP, and JSON tags.

PS: I searched for this question with the keywords "format", "beautify", "formatting code" and didn't get any similar questions. My question is similar to this one, but there's been no response for 9 months.


Viewing all articles
Browse latest Browse all 180

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>