Tabs Convert to Spaces on file open

General discussion on mikroC PRO for dsPIC30/33 and PIC24.
Post Reply
Author
Message
vlad@qharmonics.com
Posts: 1
Joined: 05 Jan 2024 23:11

Tabs Convert to Spaces on file open

#1 Post by vlad@qharmonics.com » 05 Jan 2024 23:49

I can't seem to figure this out. Whenever opening a .c file, the editor replaces tabs with spaces, even after previously saving it with tabs within the editor. Every time a file is closed/opened, it looks different.

Here are the editor options I have selected.
EditorOptions1.jpg
EditorOptions1.jpg (100.48 KiB) Viewed 187 times

It converts this:
Text1.jpg
Text1.jpg (13.62 KiB) Viewed 187 times
Into this:
Text2.jpg
Text2.jpg (15.72 KiB) Viewed 187 times
IDE Version is 7.1.0.

What setting do I need to adjust? I've tried toggling Tabs to spaces, Smart Tabs, Auto indent, and combinations of them and other settings with no change.

Thank you.

User avatar
IvanJeremic
mikroElektronika team
Posts: 316
Joined: 05 Sep 2022 14:32

Re: Tabs Convert to Spaces on file open

#2 Post by IvanJeremic » 24 Jan 2024 14:11

Hi,

Sorry for the delay.

You won't be able to change this in the settings, the compiler will always revert "tabs" to "space", there is an issue that can occur when using tabs so the compiler just reverts it to space.

Regards,

Ivan.

Post Reply

Return to “mikroC PRO for dsPIC30/33 and PIC24 General”