Skip to content
This repository was archived by the owner on Nov 16, 2019. It is now read-only.
This repository was archived by the owner on Nov 16, 2019. It is now read-only.

Integrated script editor inserts spaces instead of tabulations #48

Description

@jesus2099

It is not priority issue at all (as I work around by copy/paste back and forth from my EmEditor, now).

I think the integrated editor used to respect my code style by inserting tabulations (as the rest of my script) when pressing ENTER to append a new empty row.

Now it has been inserting new rows with heading spaces instead of tabulations, creating some inconsistencies that I have to remember to fix before committing my changes to my user scripts git repository.

I don’t know if it used to guess what to insert (spaces or tabulations) or if it used to always insert tabulations. Or if I was dreaming. Maybe it always has inserted spaces and I work arounded that all the time, I don’t know.

Activity

  1. gera2ld commented on May 30, 2016

    @gera2ld
    Member

    It used to always insert tabulations. AFAIK, most JavaScript scripts use exact two spaces to indent (e.g. MDN), so I changed the default behavior in the last release.

  2. jesus2099 commented on May 30, 2016

    @jesus2099
    ContributorAuthor

    So maybe we could have a setting for that.
    Because tab users like me will never use spaces (typewriter era hack) and space users will not want to use tabs either (hard habits). ;)

    BTW your link is not showing that most scripts use spaces. ;)
    It is a project coding styling but we can ironically find all the reasons to use tabs in the comments to a post that commands to use spaces.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions