-
Notifications
You must be signed in to change notification settings - Fork 347
Tabs v Spaces #211
Comments
All done as detailed. Done & closed. |
What about settings to have tab as spaces? I am moving from Notepad++ to IceCoder and am missing the tab to spaces function where pressing the tab key will insert 4 spaces instead of a tab. |
Didn't know that was a function but sounds useful. Will check & see if CodeMirror (the editing component of ICEcoder) provides that in some way, if not will add code to handle that. Reopened. |
From CodeMirror manual: Common example: map the Tab key to insert spaces instead of a tab character. { |
Good spot, can look to implement that into editor.php. |
This now seems to be handled by CodeMirror as default I think as it's working in ICEcoder now and I haven't added any extra code. Done and closed. |
No one can agree on tabs v spaces. Fact! ICEcoder uses tabs as the unit because I prefer to code with them as the indent unit. However, many/most people use spaces (insane as that may be). ;-)
Still, I need to allow for both methods. So, add a new setting of 'indent type' and a dropdown with options for tabs or spaces. Rename tabWidth to indentWidth and make CodeMirror use this method of indentation.
I'm keeping the default as 'tabs' tho!! :D
The text was updated successfully, but these errors were encountered: