anaptfox / atom-beautifier Goto Github PK
View Code? Open in Web Editor NEWCode beautifier for Atom.io
License: MIT License
Code beautifier for Atom.io
License: MIT License
Use activationCommands
instead of activationEvents
in your package.json
Commands should be grouped by selector as follows:
"activationCommands": {
"atom-workspace": ["foo:bar", "foo:baz"],
"atom-text-editor": ["foo:quux"]
}
Package.getActivationCommands (C:\Users\Florin\AppData\Local\atom\app-0.200.0\resources\app.asar\src\package.js:808:9)
Package.hasActivationCommands (C:\Users\Florin\AppData\Local\atom\app-0.200.0\resources\app.asar\src\package.js:733:20)
<unknown> (C:\Users\Florin\AppData\Local\atom\app-0.200.0\resources\app.asar\src\package.js:185:24)
Package.measure (C:\Users\Florin\AppData\Local\atom\app-0.200.0\resources\app.asar\src\package.js:163:15)
Package.load (C:\Users\Florin\AppData\Local\atom\app-0.200.0\resources\app.asar\src\package.js:177:12)
PackageManager.loadPackage (C:\Users\Florin\AppData\Local\atom\app-0.200.0\resources\app.asar\src\package-manager.js:355:14)
wrong page :)
How 'bout dat
In keymaps\atom-beautifier.cson: Use the atom-text-editor
tag instead of the editor
class.
Beautify:css adds a space after all pseudo class selectors:
.bubble:hover{}
.bubble:after{}
.bubble:hover:after{}
to this:
.bubble: hover{}
.bubble: after{}
.bubble: hover: after{}
Use activationCommands
instead of activationEvents
in your package.json
Commands should be grouped by selector as follows:
"activationCommands": {
"atom-workspace": ["foo:bar", "foo:baz"],
"atom-text-editor": ["foo:quux"]
}
Package.getActivationCommands (/opt/atom/resources/app.asar/src/package.js:806:9)
Package.hasActivationCommands (/opt/atom/resources/app.asar/src/package.js:731:20)
<unknown> (/opt/atom/resources/app.asar/src/package.js:185:24)
Package.measure (/opt/atom/resources/app.asar/src/package.js:163:15)
Package.load (/opt/atom/resources/app.asar/src/package.js:177:12)
PackageManager.loadPackage (/opt/atom/resources/app.asar/src/package-manager.js:355:14)
In keymaps/atom-beautifier.cson: Use the atom-text-editor
tag instead of the editor
class.
Currently, the HTML beautifier will treat Handlebars as content. I believe js-beautifier does support indentation of Handlebars in HTML code. I will look into this further and get back with my findings.
Please +1 if you are interesting in this feature; I may even submit a Pull Request if it will help.
/cc @Frozenfire92
Basically what’s written in the topic; long story short is that I prefer writing the (opening) curly braces on separate lines from the block of code under which they belong.
i.e.
if (someBoolean)
{
//do things
}
NOT
if (someBoolean){
// do things
}
????
Use a config schema instead. See the configuration section
of https://atom.io/docs/latest/hacking-atom-package-word-count and
https://atom.io/docs/api/latest/Config for more details
Package.activateConfig (C:\Users\Florin\AppData\Local\atom\app-0.200.0\resources\app.asar\src\package.js:263:11)
PackageDetailView.activate (C:\Users\Florin\AppData\Local\atom\app-0.200.0\resources\app.asar\node_modules\settings-view\lib\package-detail-view.js:163:26)
PackageDetailView.updateInstalledState (C:\Users\Florin\AppData\Local\atom\app-0.200.0\resources\app.asar\node_modules\settings-view\lib\package-detail-view.js:201:12)
<unknown> (C:\Users\Florin\AppData\Local\atom\app-0.200.0\resources\app.asar\node_modules\settings-view\lib\package-detail-view.js:235:24)
<unknown> (C:\Users\Florin\AppData\Local\atom\app-0.200.0\resources\app.asar\node_modules\emissary\lib\emitter.js:155:30)
Array.forEach (native)
In keymaps/atom-beautifier.cson: Use the atom-text-editor
tag instead of the editor
class.
Unable to download https://www.atom.io/api/packages/atom-beautifier/versions/0.5.0/tarball: 400 Bad Request Repository inaccessible
In keymaps\atom-beautifier.cson: Use the atom-text-editor
tag instead of the editor
class.
Use activationCommands
instead of activationEvents
in your package.json
Commands should be grouped by selector as follows:
"activationCommands": {
"atom-workspace": ["foo:bar", "foo:baz"],
"atom-text-editor": ["foo:quux"]
}
Package.getActivationCommands (/opt/homebrew-cask/Caskroom/atom/latest/Atom.app/Contents/Resources/app.asar/src/package.js:808:9)
Package.hasActivationCommands (/opt/homebrew-cask/Caskroom/atom/latest/Atom.app/Contents/Resources/app.asar/src/package.js:733:20)
<unknown> (/opt/homebrew-cask/Caskroom/atom/latest/Atom.app/Contents/Resources/app.asar/src/package.js:185:24)
Package.measure (/opt/homebrew-cask/Caskroom/atom/latest/Atom.app/Contents/Resources/app.asar/src/package.js:163:15)
Package.load (/opt/homebrew-cask/Caskroom/atom/latest/Atom.app/Contents/Resources/app.asar/src/package.js:177:12)
PackageManager.loadPackage (/opt/homebrew-cask/Caskroom/atom/latest/Atom.app/Contents/Resources/app.asar/src/package-manager.js:355:14)
Hi,
I just tried to install your package, but I get the following error:
Unable to download https://www.atom.io/api/packages/atom-beautifier/versions/0.5
.0/tarball: 400 Bad Request Repository inaccessible
More releated info regarding this issue: asciidoctor/atom-language-asciidoc#2
Regards,
Jeroen
Hi,
beautify on save option please.
atom.workspaceView.command "core:save", => @convert()
Hi
Please tried severally to install Atom beatify but failed. Need help.
Atom will no longer load this package after June 1st without changes. There are a couple deprecations on the latest version (0.5.0
) of this package:
activationCommands
instead of activationEvents
in your package.json Commands should be grouped by selector as follows: json "activationCommands": { "atom-workspace": ["foo:bar", "foo:baz"], "atom-text-editor": ["foo:quux"] }
atom.views.getView(atom.workspace)
, which returns an HTMLElement.Visit https://gist.github.com/benogle/6d09e295c84b717ef9b4 and search for your package name to see what deprecations are being reported on this package.
See atom/atom#6867 for more info.
When I am trying to install an atom-beautiful package there's a message coming "DEPRECATED" and another message "THERE IS NO UPDATE AVAILABLE."
PHP support would be nice
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.