jsoneditor icon indicating copy to clipboard operation
jsoneditor copied to clipboard

Option to indent output with real tabs

Open Roy-Orbison opened this issue 4 years ago • 1 comments

Ace editor seems to support it. It'd be good to have a checkbox on the Configure indentation dialogue box to control use of real, semantic tabs in code view/prettification.

Roy-Orbison avatar Sep 10 '21 01:09 Roy-Orbison

Thanks for your suggestion, makes sense.

josdejong avatar Sep 11 '21 15:09 josdejong

This is actually really simple to implement as JSON.stringify accepts a string or number as the third parameter. You'll just need to change the couple of places where you check if it's a number to allowing a string through, too.

However, this will need to translate to multiple options on the ACE editor

xploSEoF avatar Mar 11 '24 14:03 xploSEoF

This is done. If I go to Settings > Configure editor > Indentation and set the type to Tabs, I get real tabs when formatting, saving & copying.

Roy-Orbison avatar Mar 12 '24 01:03 Roy-Orbison