Skip to main content

Questions tagged [formatter]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
0 answers
6 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,...
Lockszmith's user avatar
1 vote
0 answers
12 views

Looking for ClangFormat assistant tools in customization of .clang-format options

I'm in the process of standing up a simple formatting pipeline, probably destined for ADO, for a particular product codebase, natural focus on rounding out as much as we can with ClangFormat. The ...
Pat's user avatar
  • 11
1 vote
1 answer
713 views

Is there a tool that will fix my Python indentation for me in VSCode like in this video?

I was following this beginner tutorial. I'd like to use a formatter to adjust indentation as he did. I tried to do the same things he did but it doesn't work. How can achieve the same result?
KaMZaTa's user avatar
  • 111
4 votes
2 answers
464 views

Format HTML file(s) from the command line

I want to format HTML source files from the command line, one file at a time or in bulk. Tool requirements Should be installable on Windows, Linux, and macOS. Must be capable of formatting in place, ...
Henke - Нава́льный П с м's user avatar
5 votes
2 answers
3k views

Command line SQL formatter or beautifier

I am looking for a command line SQL formatter = SQL prettifier = SQL beautifier (offline, not an online formatter) for Mac. The goal is to run it on the command line and also inside the editor (Emacs) ...
Timur Shtatland's user avatar
3 votes
1 answer
445 views

Linux CLI tool for auto-formatting (pretty printing) large SQL files

I have a large (3 GB) SQL file that came from a SQL dump. Reading it is impossible because it's formatted poorly. For example each table has a giant INSERT statement that is indecipherable. Is there ...
Freedom_Ben's user avatar
0 votes
1 answer
54 views

How can I revert yoda conditions with a PHP formatter in VS Code?

So a long time ago I accidentally used a formatter that switched all my conditions to yoda and I only noticed the damage too late. Going back in time with the file history/git is not an option so I ...
Firsh - justifiedgrid.com's user avatar
1 vote
1 answer
121 views

Simple Text Editor in Linux with Conditional Formatting

I am looking for a simple Text Editor on Linux (Arch, preferrably) with conditional formatting. I have noted this question. I am not looking for a syntax highlighter. I need conditional formatting, ...
Sean's user avatar
  • 131
1 vote
0 answers
22 views

Detect whether two dates expressed in a text are the same

I'm looking for a program or library that can detect whether two dates expressed in a text are the same. For example: "Dec. 2012" = "December 2012" = "2012-12" "...
Franck Dernoncourt's user avatar
1 vote
0 answers
43 views

Word processing software or other text-based tool that can "find" text with complex formatting

Follow up to my question here, I'm looking for word processing software or other text-based tool that can "find" text with complex (ie. formats not applied to the entire string) formatting, ...
jordanpg's user avatar
  • 111
2 votes
0 answers
38 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 ...
Andreas Meyer's user avatar
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 ...
knb's user avatar
  • 2,960
1 vote
0 answers
71 views

Markdown formatter that converts inline links to reference-style links

I would like to find a CLI utility that replaces the inline links of a markdown file to reference-style links, a la this example. On this website, I found a pandoc command that does something similar: ...
seasonedfish's user avatar
0 votes
1 answer
13 views

C++ ostreams implemented over C fprintf()

I'm looking for a library offering an std::ostream implemented on top of something other than the operating system's calls. It should be implemented either using C-style printf() commands, or ...
einpoklum's user avatar
  • 3,259
0 votes
2 answers
59 views

Recursively print all code files in a directory into a single clean PDF file

Is there any software for Windows which will crawl through a directory and subdirectories and print all the source code files it finds into a single document, preferably indexed? For example I have a ...
Lars Ericson's user avatar
1 vote
1 answer
57 views

Command line tool to convert date format

I have a text file (Markdown, actually, but close enough) with dates in a slightly annoying US format %m/%d/%Y. I'd like it to be in ISO-8601 format everywhere throughout. I could easily write a 5-...
David Mertz's user avatar
1 vote
0 answers
13 views

ESLint and/or Prettier plugin that will format javascript and JSX arguments on new lines.

I'm looking for an ESLint or Prettier plugin that is going to format my React code in the following way: Javascript Single, or double function calls, and function declarations are on single lines, ...
dwjohnston's user avatar