Code Monkey home page Code Monkey logo

Comments (4)

adrianlee44 avatar adrianlee44 commented on July 19, 2024

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.

davelandry avatar davelandry commented on July 19, 2024

+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.

adrianlee44 avatar adrianlee44 commented on July 19, 2024

@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.

adrianlee44 avatar adrianlee44 commented on July 19, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.