SlickEdit Community

SlickEdit Product Discussion => SlickEdit® => Topic started by: GWLindberg on April 11, 2011, 10:59:47 PM

Title: Expand tabs to spaces not working as I would expect
Post by: GWLindberg on April 11, 2011, 10:59:47 PM
I'm using SlickEdit 15.0.1.3 and I have global Expand tabs to spaces set FALSE and C/C++ Expand tabs to spaces set to TRUE.  SlickEdit is expanding the tabs, but to 8 spaces, even though I have C/C++ Indent Indent Style set to Syntax indent @ 4 and Tabs to +4.

Anybody know how I can get SlickEdit to expand the tabs to 4 spaces instead of 8?  The files I'm working with are also being edited with an IDE that is inserting tabs every 4 spaces, which results in some annoying formatting problems.

Title: Re: Expand tabs to spaces not working as I would expect
Post by: jimlangrunner on April 12, 2011, 04:27:23 AM
I seem to recall something like this - and it had to do with adaptive formatting back when it was first introduced.

You might try turning it off temporarily to see if that will fix it.
Title: Re: Expand tabs to spaces not working as I would expect
Post by: GWLindberg on April 12, 2011, 03:50:37 PM
Good suggestion, but I'm still getting 8 spaces for each tab.

 :(
Title: Re: Expand tabs to spaces not working as I would expect
Post by: Lee on April 12, 2011, 04:32:49 PM
Are you sure the file is in the correct document mode?  What mode is listed in the main menu under Documents > Select Mode (cur lang )...?  Is it C/C++?
Title: Re: Expand tabs to spaces not working as I would expect
Post by: GWLindberg on April 12, 2011, 04:45:49 PM
Lee,

The Documents drop down menu has the line:

Select Mode (C/C++)...

That would imply to me that the mode that it is in is C/C++. 

I've also had this problem with files that are open in the editor, have been edited in another editor that uses tabs by default at 4 spaces per tab and when the file is copied back and re-read by SlickEdit it inserts 8 spaces for each tab.
Title: Re: Expand tabs to spaces not working as I would expect
Post by: Lee on April 12, 2011, 04:57:37 PM
I have reproduced the issue on my end.  I'm filing a defect for this, I will let you know what I find out.
Title: Re: Expand tabs to spaces not working as I would expect
Post by: GWLindberg on April 12, 2011, 05:02:19 PM
Thanks you
Title: Re: Expand tabs to spaces not working as I would expect
Post by: Lee on April 12, 2011, 07:50:49 PM
Found it, issue has been addressed in the latest hotfix for 15.0.1.3, available here: www.slickedit.com/hotfix (https://customer.slickedit.com/support/product-updates/hotfixes).
Title: Re: Expand tabs to spaces not working as I would expect
Post by: GWLindberg on April 12, 2011, 08:24:54 PM
That seems to have fixed it.

Thanks for your speed, I wasn't expecting it.