Giter Club home page Giter Club logo

Comments (7)

donaldpipowitch avatar donaldpipowitch commented on July 22, 2024

I'll add this as soon as I can. I still don't have an Atom invite and can't publish this package :( Just to be clear, you don't use this package right now?: https://atom.io/packages/atom-beautifier

from atom-beautify.

ken-okabe avatar ken-okabe commented on July 22, 2024

Sorry, I was so careless, and yes I do use that package, and misunderstood this is the repo..

I repost at the correct one.

I was invited for beta by some twitter guy, and now have 2 tickets. If you care, tell me your email address I will invite you.

from atom-beautify.

donaldpipowitch avatar donaldpipowitch commented on July 22, 2024

That would be awesome, thank you: http://www.google.com/recaptcha/mailhide/d?k=01GSmMzSlJKz12X5aix_WKhA==&c=6RGOXiJee08uAQ0HRD9fD8UGd2FKKbso9mSsgnOIyxU=

from atom-beautify.

ken-okabe avatar ken-okabe commented on July 22, 2024

Invitation sent.

I've already published some theme for a try.
https://atom.io/packages/smooth-operator
If you have any question, feel free to ask me.

from atom-beautify.

donaldpipowitch avatar donaldpipowitch commented on July 22, 2024

Thank you! I'm authorized now :)

from atom-beautify.

donaldpipowitch avatar donaldpipowitch commented on July 22, 2024

Finally published! https://atom.io/packages/atom-beautify

from atom-beautify.

ken-okabe avatar ken-okabe commented on July 22, 2024

Congratz!

You need to expose Settings.

One way to do is

within activate, add

if (!atom.config.get('atom-beautify.javascript')) {
      alert('atom-beautify is successfully installed!');

      atom.config.set('atom-beautify.javascript',{
    "indent_size": 4,
    "indent_char": " ",
    "indent_level": 0,
    "indent_with_tabs": false,
    "preserve_newlines": true,
    "max_preserve_newlines": 10,
    "jslint_happy": false,
    "brace_style": "expand",
    "keep_array_indentation": false,
    "keep_function_indentation": false,
    "space_before_conditional": true,
    "break_chained_methods": false,
    "eval_code": false,
    "unescape_strings": false,
    "wrap_line_length": 0
    });

     atom.config.set('atom-beautify.run-on-save', false);
}

then,

var beautifyOptions = atom.config.get('atom-beautify.javascript');

You can use

atom.config.observe('atom-beautify', function() {
                    beautifyOptions = atom.config.get('atom-beautify.javascript');
                    });

from atom-beautify.

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.