Sublime Forum

Code style package?

#1

Hi, just make this topic to ask a question. Is there already a package made for you to like tell Sublime Text 2 your code style, and that you just do like Command+b (for example) and it applies the code style I configured. Like what most IDEs have.

Is there any package for this already? Or should I learn Python and do it myself?

0 Likes

#2

What language? For C/C++/C#/Java there’s github.com/timonwong/SublimeAStyleFormatter

0 Likes

#3

I meant for more web development oriented, or if possible, all the languages. lol Thanks for the help though. :smile:

Web development includes HTML (and all it’s variations, but mostly HTML5), JavaScript (jQuery, AJAX), PHP, MySQL etc.

  • Eduan
0 Likes

#4

I haven’t seen an all inclusive style plugin but…

For html, there is https://github.com/SublimeText/Tag. Don’t know how well it works, so just pointing it out.

For JavaScript, there is https://github.com/jdc0589/JsFormat. I’ve never used it for JavaScript styling, but “under the hood” is the same code powering http://jsbeautifier.org/. I’ve used it to format JSON (on the site) and it works fine. I haven’t seen anything for the other languages you are looking for (that being said I recently got started on Sublime Text 2).

0 Likes

#5

That’s awesome, thanks skuroda! If you find for the rest, please let me know. :smile:

0 Likes