June 13, 2018 at 7:49 pm #591133
In eclipse, I have Preferences > General > Editors > Text Editors > “Insert spaces for tabs” set. Unfortunately, this seems to interfere with tabbing through snippets in CodeMix. Is there a way to do this in CodeMix instead, that won’t interfere with snippets? Or do you have any suggestions?June 14, 2018 at 2:49 am #591174
You can change the tab size and inserting spaces for tabs settings for CodeMix editors from the User Settings preferences page here : Window > Preferences > CodeMix > User Settings. If you want to configure the properties at workspace level, then please use the Workspace Settings page under CodeMix.
Type ‘editor’ in the filter box and modify the value for the property accordingly. Please also set
editor.detectIndentationto false in User Settings.
If settings don’t seem to be being picked up, please close and reopen the editor and/or restart eclipse (this shouldn’t be necessary but it is worth trying if there are problems). We have noticed some inconsistencies in some editors so please let us know how you get on.
Genuitec SupportJune 14, 2018 at 10:44 am #591261
Thanks for your help – I’m still not getting it to use spaces instead of tabs. I tried restarting eclipse with the new changes picked up. It sets the tab size to be two spaces in length, but the tab is not made up of spaces. Though this means inconsistent indentation in my code going forward, I think it’ll be worth it for having greater snippets functionality. That said, I’m attaching some screenshots, in case they can help you think of what could be going on.
Attachments:You must be logged in to view attached files.June 14, 2018 at 10:56 am #591266
Oh wait I didn’t test carefully enough – it is actually working correctly!
Maybe restarting eclipse helped, or maybe it was something else. Anyway, I’m very happy to have this working – thanks again for your help.June 15, 2018 at 2:34 am #591314
Glad that it works. Thank you for getting back to us.
Let us know if you see any other issues.