Questions tagged [code-beautification]
Software that (or software that interacts with other software that) formats code using spaces and tabs, improving legibility of source code.
45
questions
1
vote
1
answer
19
views
Tool to separate one file with (mushed-together messy html containing messy inline styling), and produce a new pure html file and a new pure css file?
So ages ago (1992?) I naively used Dreamweaver to produce a non-commercial multi-page website.
Each element is an embarrassing hodge podge of html enmeshed with inline styling.
The content is actually ...
0
votes
0
answers
45
views
"Comma First" code style formatter for Visual Studio Code
Is there any vscode extension that helps reformat code into a 'comma first' style?
Why?
Mainly because I personally like it, and my team accepts it.
It's more common in data-analysis and data-research,...
0
votes
0
answers
18
views
What beautifier library can I use for user content?
I know a few code beautification tools (Beautifier, Prettier, ...) that format code so that a source file is easier to read for a human being.
What I'm looking for is a JS library that does the same ...
1
vote
0
answers
102
views
What tool can I use to automatically break long lines of PHP code?
I'm rewriting a lot of old PHP code at my work and we have decided to enforce the PSR12 standard. I find myself wasting a ton of time breaking long lines of code to comply with the 120 characters hard ...
0
votes
1
answer
909
views
Tool to format MATLAB code
To the best of my knowledge one can't script MATLAB's editor to apply code formatting to a file; one has to actually open the file in the editor, select the full text and press a key combo.
Obviously, ...
2
votes
0
answers
39
views
Minimalistic Java Code Formatter / Formatting Tool To ONLY fix certain aspects (eg whitespace in expressions)
Java code formatters that I'm aware of (eclipse JDT, intellij, astyle, prettier) are all quite aggressive and try to change all the code format aspects that they are technically capable of. However, I ...
2
votes
1
answer
2k
views
SPARQL query formatter
Sometimes SPARQL code appears in URLs, as long query strings, and then it is basically a very long one-liner, often URL-encoded. Or the SPARQL contains a lot of UNIONs which have linebreaks located at ...
5
votes
1
answer
4k
views
Is there any PHP code formatter for VSCode that complies with PSR-12?
Does anyone know a code style formatter that complies with the PSR-12 for Visual Studio Code?
I searched the web, but I can only find some plug-ins like PHP Formatter which follows the PSR-2 which is ...
2
votes
0
answers
55
views
Command line tool to auto generate doxygen skeleton headers
I am looking for a command line tool (Unix/Linux) that given a path to a file will find all classes/functions that are not yet documented and insert a header skeleton.
For example:
int myFunction(...
1
vote
0
answers
22
views
Is there any software that can allow me to prettily make my (java) code a pdf, with std inputs and outputs?
I'm a high school student, and for my course I need to submit my code, its input and outputs as a pdf. We did this through JDoodle. However JDoodle simply wasn't that good with large files, say 100 ...
1
vote
1
answer
107
views
Is there any code formatting tools that I can use with php/composer?
I want a library that can format my code: indentation, line breaks, how to open and close functions, spaces, etc.
We have a team, 5 people, working on the same project, and while some really take ...
0
votes
0
answers
11
views
Any IDE or plugins to visual formatting such as bg color or add tags to selected blocks of code?
I am having lots of code to reorganize. To bring all scattered code to a single place and organize them. It will be easy if I can able to add some tags to code or change something visually such as ...
1
vote
2
answers
68
views
web2py development editor with auto completion, indentation, easy navigation, try view for HTML layout
Which editor can be used with auto completion feature, indentation and easy navigation for web2py .
And also with Default features web2py feature like try view for the html layout.
5
votes
0
answers
950
views
Any linter for assembly?
Is there any linter that can reformat assembly. I see a lot of things that indicate people care a lot about this (which is to be expected). For example, from this tutorial
But alas, I couldn't ...
4
votes
1
answer
92
views
C clean-up software
I was given a big chunk of uncommented code (around 3k lines) that I need to port to another platform. After quite some time going trough this mess I have an idea of what it does.
During this time I ...
1
vote
0
answers
40
views
Open-source code style checker/beautifier for Linux
I'm looking for a tool that would check and fix programming-code style/formatting, work (at least) with PHP, JavaScript, HTML and CSS, be available for Linux and open source. Ideally it should be as ...
1
vote
0
answers
29
views
In centos-7, are there any reformatters for Python language?
In the centos-7 base and epel RPM repos, are there any reformatters for the Python language?
By "reformatter" I mean something that is like clang-format where the code stays functionally the same but ...
0
votes
3
answers
101
views
IDE or text editor that really indents everything?
I want an IDE or text editor that automatically (when clicking in the indent button) reindents every line of code (from the begining to the end).
For example, Sublime 3 doesn't do this. It just ...
1
vote
0
answers
47
views
Looking for an ASCII image code formatter
I'm looking for a (probably old) website which had videos of a guy coding a generic program in C, and then formatting them manually to look like a movie or anime character.
Imagine things like this :
...
3
votes
0
answers
984
views
Is there an offline formatter software to minify/beautify code?
How do you routinely minfy or beautify your code?
Dreamweaver doesn't do it.
Eclipse doesn't do it (not even via plugin).
phpDesigner does it, but I hate its interface.
Notepad++ could do it via ...
1
vote
0
answers
27
views
Sphinx command line viewer
Is there any utilty similar to cat, but for Sphinx (reStructuredText) files? In the sense that, since some terminals now support bold, italics, and other such markup, is there a utility that "renders" ...
2
votes
2
answers
95
views
Extension/plugin to format SQL in a way easy to block select it
When I have to put SQL strings in code I like to it become like that (example):
VB.NET
" Select " + vbCrLf + _
" Id, " + vbCrLf + _
" Name ...
4
votes
1
answer
73
views
Are there any good tools for automatically highlighting/formatting code for copying?
I'm developing some videos for my Introduction to Computing class, and as part of that I'll have lots and lots of slides of code with its output. I'd like to apply some syntax highlighting to ...
5
votes
3
answers
3k
views
multilanguage source code reformatter / beautifier / pretty-printer
I'm looking for a multi language source code reformatter / beautifier / pretty-printer. Installing and managing a separate tool for each language is quite time-wasting.
It has to support
C/C++
Java
...
1
vote
0
answers
33
views
Format code spaces to standard (desired) style
I am touching an old JavaScript project to add new features. The existing codebase is written like #1 and #2. I like it to be like #3.
codebase #1 function x (a,b){ c(d('fff')).run('ggg'); }
...
2
votes
1
answer
148
views
Code editor, or editor plugin, that can highlight and prettify wikitext
The source code for templates in Wikipedia, Wiktionary, and all MediaWiki is usually written in a congealed lump like this:
<includeonly>{{#if:{{{2|}}}|[[{{{1}}}#{{{2}}}]]|[[{{{1}}}]]}} - [http:...
2
votes
1
answer
430
views
Removing optional braces in code
Is there any tool available that will strip optional braces from code written in curly-brace programming languages?
Without starting a flame war, I'd like to follow the K&R style, where braces ...
3
votes
1
answer
259
views
Convert indentations across all files in bulk
Is there a tool to convert indentations across all specified text files? From tabs to spaces, spaces to tabs, 2 spaces to 4 spaces, etc.? I mainly need it for JavaScript files.
I use Sublime Text, ...
5
votes
2
answers
6k
views
Swift and Objective-C code analysis and style tool
I'm looking for a tool to help the automation of best practices for Swift and iOS. One that can learn and enforce best practices, and enforce code style based on a set of custom or preset rules. The ...
11
votes
3
answers
172
views
A C code beautifier that does *nothing* by default?
I'm fixing up a large, old, crufty project and want to introduce broad changes carefully, both because it will cause merge problems and because the old, crufty project contributors will get upset. At ...
1
vote
0
answers
123
views
Which website builders allow for formatting code in blogs?
I built a website using Wix, which also allows for creating a blog within the website. Much of my blogging is about various programming issues and highlights sections of code. Unfortunately, Wix ...
2
votes
1
answer
131
views
HTML, Javascript, *and PHP* beautifier
There are loads of online beautifiers for HTML and Javascript (or only PHP), but when you mix PHP into that, the result is a beautified HTML/JS and non-beautified PHP.
Are there any free online ...
1
vote
3
answers
219
views
C++ source code formatter
I am coding a tool to parse C++ code. I don't want to end up coding half of a compiler. Even though I am aware of Clang, that is too much for my purposes.
I was hand-parsing, but have come up against ...
7
votes
2
answers
218
views
Desktop programs to beautify code
Sometimes I have a piece of code, which could be SQL or JSON or JavaScript or anything else, and I want to beautify it, i.e. make it nicely indented and colorized so it'll be easy to read.
If you ...
3
votes
1
answer
132
views
Chrome new tab page to beautify and check code
I am looking for a Chrome extension to replace the New Tab Page with one that allows me to paste in some code (in JavaScript, CSS or HTML) and get a beautified output along with any errors if ...
2
votes
1
answer
79
views
Format code for entire team
We are using git for our source control. Team members either use eclipse, atom, notepad++, or IDEA for development. There is the occasional visual studio development but it is often. We use a variety ...
1
vote
1
answer
52
views
Objective-c++ coding style / code formatting
I am looking for a way to automate the coding style of my Objective-C++ code (a mix of Objective-C and C++).
I played with Uncrustify: it works great with Objective-C or C++ but when trying to format ...
1
vote
0
answers
446
views
PHP CodeSniffer vs Mess Detector
I'm working on cleaning up my code and came across some PHP linters: Mess Detector Code Sniffer through PHPStorm's inspection settings.
Should I use these together or just one?
What benefits does ...
3
votes
3
answers
528
views
HTML editor with HTML beautifier
On Windows, I'd like to be able to edit some HTML that's been stripped of whitespace. So I would like some sort of HTML beautifier feature, syntax highlighting and tab indenting would be nice.
Not ...
4
votes
1
answer
287
views
PHP beautifier/tidier/cleaner written in JavaScript
The title says it all, I'm looking for a library or some piece of JavaScript code to beautify PHP code. (would be good if it could also tidy HTML or JavaScript but not necessarily)
Does anyone know ...
1
vote
2
answers
1k
views
CodeMaid alternative for Sublime Text 3
I use Sublime Text 3 as my primary code editor. I'm looking for a plug-in for automatic code formatting (auto indentation, fix curly braces, etc.) and function sorting/reordering, and other cleanup.
...
6
votes
1
answer
3k
views
XML code alignment in Notepad++
I've been looking around for how to do this automatically and I cannot quite figure it out
I am currently editing one of my skins I've released for LOTRO and some of the new code I have isn't ...
6
votes
2
answers
129
views
Software reformating SQL statements
I'm looking for an easy tool which is helping to reformat SQL statements. So e.g.
SELECT foo, baa from baafoo where id > 10 and comment = 'John was it';
will become to something like
SELECT
...
8
votes
2
answers
88
views
Extract Method recommendations tool
Is there a tool that searches code and makes recommendations for extracting method candidates with duplicated code? Here's a really contrived example:
import java.util.List;
public class ...
5
votes
4
answers
12k
views
Online C# code beautifier
Is there an online C# beautifier that is easy to paste-beautify-copy from?
I am looking for one that has options for:
Indentation (4 spaces, n spaces, tab char, etc)
Curly braces placement (on the ...