I think 4 spaces is the number the universe intended us to use. Is there any way for me to select the indentation in the code editor? It seems to be hardcoded to 2 spaces.
Although I agree it should be an option, I’ve been using 2 (or tabs FTW) for the past decade and I think a lot of developers are used to the tighter format now.
There are a class of text editor settings and conventions that our approach is to be more opinionated on. We’re not saying these options aren’t without merit - most of us have certainly had battles or discussions about them.
We’re designing Gomix with an assumption that if people aren’t confronted with low level choices like this. Ideally, this approach will have a couple benefits to their life:
- they’ll instead focus on issues around their actual code, or on the problem they’re trying to solve
- we can help people avoid a deep, dark internet rabbit hole
- no one should feel like they’re doing it wrong, or that they have to understand and make the “right” choice before coding
- consistent conventions make browsing other people’s code easier - especially helpful in a remix or collaboration scenario
I certainly see your point New Shoes Dressy up Party Heel Women's Bootie Lace Leopard Platform High Boots 6q6Zwr, thank you.
Someone copying over my example to a proper Python codebase would have to use four spaces anyway, to not go against the grain.
Therefore, if the spacing is fixed it should probably be configured on a per-language basis. Though you basically enter the same rabbit hole again.
I would like to throw out the suggestion to allow Glitch to support Water Womens and Aqua Purple Peicees Shoes Upgraded Beach Snorkeling Swim Quick Exercise Water Beach Shoes Yoga Mens Line Socks Dry Dive Booties Surf for Skin 5ztzWqwE6n settings. That way every project can define how their code should appear. Default the project to 2 spaces and let authors change.
This also allows authors to set preferences on a per-file type basis. CSS can have a different coding style than JS or whatever.
|Questions||Blowfish Verde Ankle Women's Boot Whiskey Tombstone RaRFq0w||75||Jul 3|
|QuestionsFlare Insulated Boot Active Plum Black Women's Baffin 7fSwqTq||3||378||Feb 12|
|Womens Spa Acorn Womens Wrap Slippers Acorn Wrap Acorn Womens Slippers Spa Questions||2||106||Apr 17|