Log In  


Recently an option was added to change the width of tabs in PICO-8. I would like to have a config option to change all leading tabs to spaces (and the tab width would determine how many spaces) like many code editors do. There are trade offs between tabs and spaces and I tend to like to have absolute control over the vertical positioning of code. This is especially useful in PICO-8 so that the code ends up looking pretty when viewed including in the web code viewer. When I use tabs, if I have several clauses of an if lined up right underneath each other for example, they might not be underneath each other if a different tab width is selected from what I had used when I wrote the code. I'd like it to look the same as when I wrote it, in any editor.

I'm able to create pre-commit hooks and scripts to accomplish this for myself, but it'd be nice if it was built in as many code editors have the option.

7


1

Hey I was just thinking the other day that it's annoying when I view my .p8 files in Notepad++ and the places where I used tab don't look like the places I used space :D


So...how about it? :D


1

Bump! It's not necessary for PICO-8 itself, but would make it much easier to work with the p8 code outside of the console.


It does apply to the PICO-8 ecosystem itself though---if you value your code style being preserved regardless of tab width, in the code viewer on the BBS. Not everyone cares about this and tabs have advantages too of course, which is why it would be nice if it was an option.



[Please log in to post a comment]