GithubHelp home page GithubHelp logo

vcfvct / brackets-file-format Goto Github PK

View Code? Open in Web Editor NEW
14.0 2.0 4.0 16 KB

This extension adds re-indent and auto-formatting function to certain file type for Adobe Brackets.

License: MIT License

JavaScript 100.00%

brackets-file-format's Introduction

brackets-file-format

This extension adds re-indent and auto-formatting function to certain file types Adobe Brackets.

You can re-indent all file types by using "Edit > Auto Indent" menu or "Ctrl+Shift+I" key. OR you can right click and select 'Auto Indent'.

You can format XML/HTML, CSS, JSon, and SQL files by "Edit > Auto Format" menu or "Ctrl+Alt+L" key.

You can minify XML/HTML, CSS, JSon, and SQL files by "Edit > Auto Minify" menu or "Ctrl+Alt+M" key.

If you do not want to save to xml/json file to format (i.e file without extension), use:

Ctrl-Alt-Shift-B for pretty XML

Ctrl-Alt-Shift-M for pretty Json

Use the above keys just to make it the same as what we have in notepad++'s xml/json plugin.

Install

Please download zip and extract into arbitrary directory (or clone source files), then move the folder to the extensions folder (you can open this folder by clicking "Help > Show Extensions Folder" menu).

License

This software is licensed under MIT license.

Change log

V1.2.2 show pretty xml/json menu item only for file without extension.

V1.2.1 change the format hotkey to ctrl-alt-L so that it does not flush the system default key. also changed the minify to ctrl-alt-M for consistency.

v1.2.0 added the auto indent to the context menu(right click).

v1.1.0 added Ctrl-Alt-Shift-B for pretty XML AND Ctrl-Alt-Shift-M for pretty Json. These key combination is the same as what we have in notepad++'s xml/json plugin.

brackets-file-format's People

Contributors

brackets-io avatar suhajdab avatar vcfvct avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

brackets-file-format's Issues

Respect configured tab/space indent settings

Hey, foremost thanks for this extension. What I find strange is that it forces 4 whitespaces to be used in HTML indentations, but my setting is set to 2 spaces. May you include that feature please?

Add "Auto Indent" Option to Right Click Menu

It would be nice to have the "Auto Indent" option added to the right click menu. Another plugin, Beautify, has this ability. This is just an enhancement, not a bug or issue.

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.