Comments (7)
just open a coffeescript file and press ctrl alt b... nothing happens
from atom-beautify.
It "works" in some files. For instance:
Before
hello derek how is it going?
for c, i in "Hello World!"
k = 1+1- 2>=3<= 4>5 <6
for c, i in "Hello World"
k = (a,b)-> if b? return a
f = b()[0]
for c, i in "Hello World"
f(b())
After
hello derek how is it going?
for c, i in "Hello World!"
k = 1 + 1 - 2 >= 3 <= 4 > 5 < 6
for c, i in "Hello World"
k = (a, b) -> if b? return a
f = b()[0]
for c, i in "Hello World"
f(b())
The problem is not Atom Beautify's support of CoffeeScript Beautification -- it is always beautifying when requested. The problem is that Coffee-Formatter seems to be not to work in all cases and misses quite a lot of indentation and other problems unless it is very obvious (see above example).
from atom-beautify.
The source code is in Literate CoffeeScript and looks fairly well documented. If you have some known issues that you'd like to beautify / format however it is currently not working, potentially submitting a Pull Request to the Coffee-Formatter would be great.
from atom-beautify.
it uses default indentation for editor instead of default identation for coffeescript package?
Right now beautify makes 4 spaces indent , making linters unhappy.
from atom-beautify.
it uses default indentation for editor instead of default identation for coffeescript package?
I'm not quite sure what you mean by default indentation for coffeescript package
. I am not sure if CoffeeScript itself has a recommended default indentation size, however for Atom Beautify all settings are extracted from user configuration and can easily be changed to be what you want, such as the default indentation for coffeescript package
as you described.
You can see the order of prioritized configurations at https://github.com/Glavin001/atom-beautify#configuration
In addition to .jsbeautifyrc
you are able to use .editorconfig
and Atom package settings for Atom Beautify, which provides the easiest view and descriptions for each option.
Right now beautify makes 4 spaces indent , making linters unhappy.
Then you can simply change it: see https://github.com/Glavin001/atom-beautify#configuration
from atom-beautify.
and yet, it's still beautifying with 2 spaces of indent. What gives?
from atom-beautify.
@ironyinabox please create a new issue and follow the Issue template structure.
More specifically, be sure to add a link to the required debug.md
Gist which includes debugging information that answers our most commonly asked questions: https://github.com/Glavin001/atom-beautify/blob/master/ISSUE_TEMPLATE.md#how-to-create-debugmd-gist
Thank you.
from atom-beautify.
Related Issues (20)
- Javascript space before paren HOT 1
- Failed to activate the atom-beautify package HOT 3
- beautify HOT 1
- download failed HOT 1
- Cannot beautify Velocity file HOT 1
- Installed but not listed on packages tab HOT 1
- dart language not support HOT 1
- Could not find 'uncrustify'. The program may not be installed. HOT 1
- 0 I've been trying to install atom-beautify on my Windows 10 x64 machine, but I keep getting this error : npm ERR! code Z_BUF_ERROR npm ERR! errno -5 npm ERR! zlib: unexpected end of file npm ERR! A complete log of this run can be found in: npm ERR! C:\Users\*****\.atom\.apm\_logs\2019-01-18T06_40_37_988Z-debug.log Googling about it, I found this is an issue that has been raised but closed without much in the way of resolution : https://github.com/Glavin001/atom-beautify/issues/2240 I tried uninstalling and reinstalling Atom, and also deleting the .apm folder and giving it another go, and then trying to install previous versions of atom-beautify using the following, apm install [email protected] apm install [email protected] But nothing seems to work, and I get the same error with a Deprecation warning on the latter. Has anyone else encounteredd this issue, are there any known work-arounds for it? HOT 1
- Atom-beautiful
- atom-beautify
- cant go futher of this HOT 1
- network is unreachable
- it was not installing HOT 1
- PHP beautify problem HOT 1
- How can I solve this problem ? HOT 2
- facing error HOT 2
- Not working :( HOT 1
- i
- Object.<anonymous> is deprecated.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from atom-beautify.