Comments (8)
For example.jsbeautifyrc
:
{
"html": {
"indent_char": " ", // Tab character here
"indent_size": 1,
"indent_with_tabs": true
}
}
from atom-beautify.
This is a problem with Atom Settings View. Using the Settings View there would be nothing I could with Atom Beautify to fix that. However...
Easy Solution
You could put a tab character in your .jsbeautify
configuration file.
See https://github.com/Glavin001/atom-beautify#configuration for details.
Store the .jsbeautify
config file in your User home directory (~/.jsbeautify
) if you want it to be effectively global. Or better yet, put it in your project's directory.
Let me know if you have any further questions.
from atom-beautify.
Since there's no sane reason for using something other than tabs or spaces for indenting, would it be possible to have a boolean flag in the future? There seems to be one for the JavaScript settings already.
Also, what would my home directory be on Windows?
from atom-beautify.
Since there's no sane reason for using something other than tabs or spaces for indenting, would it be possible to have a boolean flag in the future? There seems to be one for the JavaScript settings already.
The options are defined by the underlying package, js-beautify. See the complete list of options here: https://github.com/beautify-web/js-beautify#options
-t, --indent-with-tabs Indent with tabs, overrides -s and -c
It appears that using indent-with-tabs
will override your indentation size
and indentation character
, so effectively giving you what you want.
Also, what would my home directory be on Windows?
A quick Google search shows that the Home Directory for Windows is C://Users/YOURUSERNAME/
. Give that a try.
from atom-beautify.
You could put a tab character in your .jsbeautify configuration file
Can't without opening it in a plain-text editor (eg Notepad), since Atom translates [tab] to indenting.
from atom-beautify.
@Glavin001 Can you please elaborate why using "indent_with_tabs": true
does not work?
from atom-beautify.
Can you please elaborate why using
"indent_with_tabs": true
does not work?
@julmot : indent_with_tabs
should work, and it overrides indentation size
and indentation character
when used with JS-Beautify.
If you are having issues, please create a new Issue following the template found at https://github.com/Glavin001/atom-beautify/blob/master/ISSUE_TEMPLATE.md and be sure to include the debugging information in a Gist.
from atom-beautify.
I had the same problem, i solved it by deleting the file ".editorconfig" of the project folder where I was working
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.