Slightly off topic – but the JSON format you guys are using – really a lot going on with that – do you have a recommended editor for that. I usually us vim for editing and I suppose I could modify that – looks like tabs are 4 spaces?
Hey @kevdog, I split your question out into a new thread to keep the wiki on-topic as per our rules.
Whitespace in JSON is irrelevant, so it’s up to your preference. I do most of my editing in VS Code. I prefer tabs size 4, or sometimes tabs size 2 if the JSON is very very nested.
Protip when using the
caddy adapt command, I like to pipe the output to sed to shorten the indentation:
caddy adapt --config Caddyfile | sed 's/\t/ /g'
It replaces tabs with two spaces.
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.