Hacker Newsnew | past | comments | ask | show | jobs | submitlogin
Ask HN: AI Coding Preference
4 points by treebeard901 4 days ago | hide | past | favorite | 5 comments
Do you prefer tabs or spaces with code generated from your AI models?
 help



Use git pre-commit hooks to format automatically, AI doesn't really listen to it. I am personally a tab sortta guy.

whatever is appropriate for the language being generated, use a formatter after edit/write tool calls

whatever the repo's formatter says. asking the model never stuck

spaces

i always preferred tabs ( and each developer chooses how many spaces it mean in its own .vimrc ) but then i was forced to move to spaces when "opiniated" languages -- i am looking at you, F# FS1161 -- decided to mistreat the innocent tabs.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: