Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

146
Views
Reindent minified Javascript with Sublime

Let's say you have an example.js file open in SublimeText:

function foo(bar){a=1;b=2;for(var i=0;i<100;i++){console.log(i);};}

How to automatically have an indented code with SublimeText? such as:

function foo(bar) {
    a=1;
    b=2;
    for (var i=0;i<100;i++) {
        console.log(i);
    };
}

I tried Edit > Line > Reindent or CTRL+SHIFT+P Reindent but it does nothing on this code. Why?

How is this possible without a third-party package requiring node.js installed (such as HTML-CSS-JS Prettify)?

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

Since you don't want a Node.js server running just for formatting, and because it works really well for me, I'd recommend checking out JsFormat. I looked through the source, and the only .js files I could find are for testing -- everything else, including the underlying jsbeautifier library, is written in Python, so it'll run as a native plugin.

about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!