Author Topic: Expand tabs to spaces not working as I would expect  (Read 5664 times)

GWLindberg

  • Community Member
  • Posts: 8
  • Hero Points: 0
Expand tabs to spaces not working as I would expect
« 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.


jimlangrunner

  • Senior Community Member
  • Posts: 360
  • Hero Points: 31
  • Jim Lang - always a student.
Re: Expand tabs to spaces not working as I would expect
« Reply #1 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.

GWLindberg

  • Community Member
  • Posts: 8
  • Hero Points: 0
Re: Expand tabs to spaces not working as I would expect
« Reply #2 on: April 12, 2011, 03:50:37 PM »
Good suggestion, but I'm still getting 8 spaces for each tab.

 :(

Lee

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 1299
  • Hero Points: 130
Re: Expand tabs to spaces not working as I would expect
« Reply #3 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++?

GWLindberg

  • Community Member
  • Posts: 8
  • Hero Points: 0
Re: Expand tabs to spaces not working as I would expect
« Reply #4 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.

Lee

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 1299
  • Hero Points: 130
Re: Expand tabs to spaces not working as I would expect
« Reply #5 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.

GWLindberg

  • Community Member
  • Posts: 8
  • Hero Points: 0
Re: Expand tabs to spaces not working as I would expect
« Reply #6 on: April 12, 2011, 05:02:19 PM »
Thanks you

Lee

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 1299
  • Hero Points: 130
Re: Expand tabs to spaces not working as I would expect
« Reply #7 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.

GWLindberg

  • Community Member
  • Posts: 8
  • Hero Points: 0
Re: Expand tabs to spaces not working as I would expect
« Reply #8 on: April 12, 2011, 08:24:54 PM »
That seems to have fixed it.

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