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.

P#77869 2020-06-10 01:39


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

P#77902 2020-06-10 18:59

So...how about it? :D

P#84214 2020-11-14 01:04

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.

P#84570 2020-11-21 12:57

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.

P#84571 2020-11-21 15:07

[Please log in to post a comment]

Follow Lexaloffle:          
Generated 2023-03-26 22:29:31 | 0.006s | Q:14