Giter Club home page Giter Club logo

Comments (6)

sglyon avatar sglyon commented on August 18, 2024 2

Smart(er) indentation for atom in general would be great. syntax aware indentation is always one thing that makes it feel nice when I open up emacs for a bit

from atom-language-julia.

pfitzseb avatar pfitzseb commented on August 18, 2024 1

Yeah, definitely, but that's kind of out of scope for this package.

from atom-language-julia.

sglyon avatar sglyon commented on August 18, 2024

Hmm off the top of my head I'm not sure what the issue is here.

Any ideas?

from atom-language-julia.

pfitzseb avatar pfitzseb commented on August 18, 2024

I haven't yet seen any grammar do this -- the only thing is to indent the next line by a bit if there's an open paren:

longfoo(arg1, 
  arg2,
  arg3)

But if you manually indent the second line up to the paren (or wherever, really), the line after that will keep that indent:

longfoo(arg1,
        arg2,
#       | you'll get here on enter

I don't know much about the capabilities of grammars in Atom, but I'd think that something like that should be done by a code beautifier or something similar...

from atom-language-julia.

pfitzseb avatar pfitzseb commented on August 18, 2024

Somewhat related: atom/atom#10384

So when that parsing system rework lands we should be able to do what is proposed here.

from atom-language-julia.

vancleve avatar vancleve commented on August 18, 2024

Can this be adapted to help since it produces PEP8 indenting for Python?

python-indent

from atom-language-julia.

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.