Comments (4)
I agree with you that the expected behavior should be what you expected but since the indentation of the first line is different from the rest, this package is not aligning the first line.
This is an interesting issue as this syntax is Javascript specific. This is a valid issue and I'll be looking into a solution in the coming weeks. Open to any suggestions!
from atom-aligner.
+1 for this issue
Have you also thought about supporting this declaration style (check out the commas)?
var Apple = require('apple')
, Banana = require('banana')
, Grapefruit = require('grapefruit');
from atom-aligner.
@davelandry, I didn't consider the user case you provided but fixing the original issue should also be able to account for the one you provided.
from atom-aligner.
You can now select and align multiple lines with different indentations which you can now align
var Apple = require('apple'),
Banana = require('banana'),
Grapefruit = require('grapefruit');
by selecting all three lines and then activate aligner.
var Apple = require('apple'),
Banana = require('banana'),
Grapefruit = require('grapefruit');
from atom-aligner.
Related Issues (20)
- TextEditor.module.exports.Object.defineProperty.get is deprecated. HOT 1
- Comment duplication when aligning variables with and without operators. HOT 1
- Change default keybinding HOT 1
- Align RSpec to eq HOT 11
- aligning destructuring statements removes/mangles code HOT 2
- Bug: Removing code (!) HOT 7
- Aligner not working on Linux HOT 4
- New Update Breaks functionality HOT 15
- Uncaught TypeError: Cannot read property 'getSelectedBufferRanges' of undefined HOT 4
- where to modify alignment options ? HOT 3
- aligner for salt states HOT 8
- different from file vue and file js HOT 8
- Atom aligner not working HOT 11
- TypeScript support HOT 3
- Aligner stopped working after atom updated to 1.19.0 HOT 2
- Package doesn't accept Ctrl-Alt-/ HOT 4
- Uncaught TypeError: Cannot read property 'reset' of null HOT 8
- Failed to activate the aligner package HOT 1
- Uncaught TypeError: Cannot assign to read only property 'row' of object '[object Object]' HOT 3
- Identical examples readme.md HOT 1
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-aligner.