Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Generated code formatting (indents and semicolons) #5168

Open
IrregularShed opened this issue Jan 10, 2019 · 0 comments
Open

Generated code formatting (indents and semicolons) #5168

IrregularShed opened this issue Jan 10, 2019 · 0 comments

Comments

@IrregularShed
Copy link

Feature request template

Is your feature request related to a problem? Please describe.
I would like there to be a way to set the size of indents in the code that gets generated when I flip over into the Monaco editor, and to turn on semicolons at the ends of lines. Four spaces for an indent results in a lot of negative space on the screen which on something like a low-end Chromebook is at a premium. I'd also like to see a way to have trailing semicolons on lines, because I'm an old man who thinks that not finishing your lines with a semicolon is like not wearing socks with shoes and a suit - sure, you can and the young hipsters might like how it looks, but it doesn't feel properly dressed without it!

I guess this could go further and provide a means to expose more Monaco options (I'm a fan of showing whitespace characters, for example).

Describe the solution you'd like
The project files, shown in Explorer, already allows access to pxt.json - it might be worth including linting/formatting settings in here to be passed through to the code generation and Monaco editor settings.

Describe alternatives you've considered
I've been searching for these settings since I got hold of a microbit! I've considered going as far as reflashing it with https://github.com/espruino/Espruino but I'd prefer to keep the experience as stock as possible for my son.

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

No branches or pull requests

2 participants