GithubHelp home page GithubHelp logo

select / sublime-text-jsbeautifier Goto Github PK

View Code? Open in Web Editor NEW

This project forked from bjouhier/sublime-text-jsbeautifier

0.0 1.0 0.0 166 KB

JsBeautifier command for Sublime Text 2

Python 97.41% JavaScript 2.59%

sublime-text-jsbeautifier's Introduction

Summary

Uses the commandline/python-module javascript formatter from http://jsbeautifier.org/ to format the selected text, or the entire file if there is no selection.

Attention: the plugin does not check to make sure the buffer has a .js file type, it just javascript formats the selection/file. Thus, use with caution if you are in an HTML file.

Install

Linux

git clone [email protected]:select/sublime-text-jsbeautifier.git ~/.config/sublime-text-2/Packages/Jsbeautify

Mac

git clone [email protected]:select/sublime-text-jsbeautifier.git ~/Library/Application\ Support/Sublime\ Text\ 2/Packages/Jsbeautify

Windows

git clone [email protected]:select/sublime-text-jsbeautifier.git %APPDATA%/Sublime\ Text\ 2/Packages/Jsbeautify

Key Binding

The default key binding is ctrl+shift+j

This is similar to auto pep8 ctrl+shift+8 for python

Updates

  • 3/7/2013 - Forked project, updated jsbeautifier, added sublime settings, changed keybinding
  • 8/25/2011 - Added sublime-commands file. Format: Javascript now appears in the command palette
  • 8/25/2011 - scrolls back to whatever line you were on prior to formatting the file (middle of screen) rather than leaving the view position at the top of the file after formatting.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.