• Packages
  • Themes
  • Documentation
  • Blog
  • Discuss
Sign in

fixed-indentation-width

Fix indentation width as you like
  • #indent
  • #indentation
  • #tab
sharapeco
0.1.0 319
0
  • Repo
  • Bugs
  • Versions
  • License
Flag as spam or malicious

Atom fixed-indentation-width package

Fix indentation width as you like in any indentation styles.

Settings

Currently, you can set indentation width only in your stylesheet (~/.atom/styles.less).

.fixed-indentation-width(14.4px, 20px, 28px);

.fixed-indentation-width(@font-size, @line-height, @indent-width) {

	.generate-tab-width(10);
	.generate-tab-width(@n, @i: 1) when (@i =< @n) {
		atom-text-editor[data-tab-width="@{i}"] {
			.leading-whitespace,
			.trailing-whitespace:first-child {
				letter-spacing: @indent-width / @i;
			}
		}
		.generate-tab-width(@n, (@i + 1));
	}
	
	.leading-whitespace,
	.trailing-whitespace:first-child {
		display: inline-block;
		vertical-align: top;
		height: @line-height;
		font-size: 0;
	}
	
	.leading-whitespace.hard-tab {
		letter-spacing: @indent-width;
	}
}

I think this package is bad news.

Good catch. Let us know what about this package looks wrong to you, and we'll investigate right away.

  • Terms of Use
  • Privacy
  • Code of Conduct
  • Releases
  • FAQ
  • Contact
with by