GithubHelp home page GithubHelp logo

pretty-gd's Introduction

pretty.gd

pretty godot

A formatter for GDScript that just works! kinda...

Requirements

None!

Extension Settings

none yet..

Known Issues

none yet..

Release Notes

1.10.0

  • Treat ! as a sign (like - for negative values)

1.9.0

  • Opening curly brackets is now its own class (which helps with spacing in enums)

1.7.0

  • Recongnize operators longer than one character
  • Refactored tokenizer

1.3.0

  • Added support for _ in numbers
  • Added support for @annotations
  • Added support for nodepaths starting with &, ^ or %

1.2.0

  • Recognizing node paths

0.3.0

  • Giving keywords some room

0.2.0

  • Fancy icon!

0.1.0

Initial release!

pretty-gd's People

Contributors

poeticandroid avatar

Stargazers

 avatar  avatar Aaron Levine avatar Michael Schaufelberger avatar Jingyu avatar Seos avatar

Watchers

 avatar

pretty-gd's Issues

maaan THANK YOU

Just wanted the basics, man. No way I'm installing python and pylint and gumPy and pypypypy and whatever else just to fix indents and drop extra spaces.

Thanks for this.

Space is Missing for Named Enum Declarations

First of all, thank you! It's great this extension has no dependencies ๐Ÿ˜…

My report:

enum Direction {
  UP,
  DOWN,
  LEFT,
  RIGHT
}

formats to

enum Direction{
  UP,
  DOWN,
  LEFT,
  RIGHT
}

while

enum {
  UP,
  DOWN,
  LEFT,
  RIGHT
}

stays the same.

I propose to add a space between the bracket and the enum name.

Extra space added between ! and variable names in conditional statements

Hello!

This plugin is wonderful and easy to use, however there is one thing I would like to see tweaked.

Currently, when formatting, spaces will be added between ! and variable names. Example:

if !some_variable && !some_other_variable:
    pass

The above would turn into

if ! some_variable && ! some_other_variable:
    pass

I'd either love to see this behavior removed or there be an associated settings file with this extension that let's this behavior be turned on/off depending on the preference of the dev.

Appreciate ya!

Format error with large numbers (underscore notation)

When using the notation for large numbers like 10_000_000 (meaning 10000000) the formatter will add a space before the first underscore resulting in Godot Parse errors (Godot 3.5.1, Windows 10, VSC)
Before formatting:
image
After formatting:
image
image

Am I doing something wrong with the formatter, or is this an issue on the extension's end?

Thanks for all the help!
Regards,
Aura

Extension won't work

"A formatter for GDScript that just works!"
Too bad it doesn't ๐Ÿ˜‚
Seriously though. It infinitely loads, no formmating is fisible

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.