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

Integrated script editor inserts spaces instead of tabulations #48

Open
jesus2099 opened this issue May 29, 2016 · 2 comments
Open

Integrated script editor inserts spaces instead of tabulations #48

jesus2099 opened this issue May 29, 2016 · 2 comments

Comments

@jesus2099
Copy link
Contributor

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.

@gera2ld
Copy link
Member

gera2ld commented May 30, 2016

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.

@jesus2099
Copy link
Contributor Author

jesus2099 commented May 30, 2016

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 subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants