Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

bumaociyuan/JSFormatter-Xcode

Folders and files

NameName
Last commit message
Last commit date

Latest commit

History

25 Commits

Repository files navigation

No longer maintained

JSFormatter-Xcode

Xcode plug to format js html css files using js-beautify

Requirement

Screenshot

image

##Support Extension

  • js
  • css
  • html\htm
  • json

Installation

Build from source code

  • Build the Xcode project. The plug-in will automatically be installed in ~/Library/Application Support/Developer/Shared/Xcode/Plug-ins.
  • Relaunch Xcode.

To uninstall, just remove the plugin from ~/Library/Application Support/Developer/Shared/Xcode/Plug-ins and restart Xcode.

Install Via Alcatraz

  • Install Alcatraz.
  • Search JSFormatter click the icon on left to install.

Get Xcode UUID

defaults read /Applications/Xcode.app/Contents/Info DVTPlugInCompatibilityUUID

How does it work?

All the commands are in the menu Edit > JSFormatter. Click Format Active JS File to format

Shortcut

You can create keyboard shortcuts for the menu items in the Keyboard Preferences of OS X System Preferences.

Thanks

Thanks to the BBUncrustifyPlugin-Xcode since I used some code from it.

TODO

  1. (削除) Install via Alcatraz (削除ここまで)
  2. Add Format Selected JS Files
  3. Add Format Selected JS Lines
  4. (削除) Xcode 7 Support (削除ここまで)

License

The MIT License (MIT)

About

Xcode plug to format js html css files

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

AltStyle によって変換されたページ (->オリジナル) /