|
|
|
Right there with Babe
      
Group: General Forum Members
Last Login: Yesterday @ 10:04 AM
Points: 753,
Visits: 3,786
|
|
Comments posted to this topic are about the item Tabify Select Lines
______________________________________________________________________ The greatest enemy of knowledge is not ignorance, it is the illusion of knowledge. - Stephen Hawking
|
|
|
|
|
SSC-Enthusiastic
      
Group: General Forum Members
Last Login: Thursday, April 11, 2013 12:58 AM
Points: 174,
Visits: 555
|
|
| 3% of 36 or one person answered the Garfield option.
|
|
|
|
|
Hall of Fame
       
Group: General Forum Members
Last Login: Friday, June 14, 2013 2:30 AM
Points: 3,063,
Visits: 1,335
|
|
It only "tabifies" groups of 4 spaces starting from the left, so if you have 5 spaces at the beginning of the line, you'll get a tab and a space after running this.
I think it's the same in Visual Studio.
Duncan
|
|
|
|
|
SSCommitted
      
Group: General Forum Members
Last Login: Friday, May 17, 2013 2:53 AM
Points: 1,552,
Visits: 359
|
|
SSMS question after a long time.. thanks
|
|
|
|
|
SSCertifiable
       
Group: General Forum Members
Last Login: Today @ 7:08 PM
Points: 6,388,
Visits: 8,289
|
|
Duncan Pryde (7/8/2010) It only "tabifies" groups of 4 spaces starting from the left, so if you have 5 spaces at the beginning of the line, you'll get a tab and a space after running this.
I think it's the same in Visual Studio.
Duncan Actually, it "tabifies" based upon the setting in Options|Text Editor|All Languages/Plain Text/Transact-SQL/XML|Tabs for the Tab Size setting. In my case, it's set to 2. Selecting tabify on your 5 spaces gives me 2 tabs and 1 space.
Wayne Microsoft Certified Master: SQL Server 2008 If you can't explain to another person how the code that you're copying from the internet works, then DON'T USE IT on a production system! After all, you will be the one supporting it! Links: For better assistance in answering your questions, How to ask a question, Performance Problems, Common date/time routines, CROSS-TABS and PIVOT tables Part 1 & Part 2, Using APPLY Part 1 & Part 2, Splitting Delimited Strings
|
|
|
|
|
Hall of Fame
       
Group: General Forum Members
Last Login: Friday, June 14, 2013 2:30 AM
Points: 3,063,
Visits: 1,335
|
|
WayneS (7/8/2010)
Duncan Pryde (7/8/2010) It only "tabifies" groups of 4 spaces starting from the left, so if you have 5 spaces at the beginning of the line, you'll get a tab and a space after running this.
I think it's the same in Visual Studio.
DuncanActually, it "tabifies" based upon the setting in Options|Text Editor|All Languages/Plain Text/Transact-SQL/XML|Tabs for the Tab Size setting. In my case, it's set to 2. Selecting tabify on your 5 spaces gives me 2 tabs and 1 space.
Ah, interesting. There had to be an option to configure it somewhere! I suppose I've just always been happy with the default...
Duncan
|
|
|
|
|
SSC Eights!
      
Group: General Forum Members
Last Login: Friday, February 04, 2011 7:20 AM
Points: 977,
Visits: 1,499
|
|
I think the answer is not quite correct. The action only changes the LEADING spaces on a line to tabs.
Tom Garth Vertical Solutions
"There are three kinds of men. The one that learns by reading. The few who learn by observation. The rest of them have to pee on the electric fence for themselves." -- Will Rogers
|
|
|
|
|
SSCrazy
      
Group: General Forum Members
Last Login: Tuesday, June 11, 2013 2:08 PM
Points: 2,121,
Visits: 2,226
|
|
"Changes the font to look like cat scratchings" is getting 1% of the answers as of the time I posted this comment. A small but bold cadre of users who are willing to sacrifice QOTD points for humor.
- webrunner
------------------- "The chemistry must be respected." - Walter White
"A SQL query walks into a bar and sees two tables. He walks up to them and says 'Can I join you?'" Ref.: http://tkyte.blogspot.com/2009/02/sql-joke.html
|
|
|
|
|
Right there with Babe
      
Group: General Forum Members
Last Login: Yesterday @ 10:04 AM
Points: 753,
Visits: 3,786
|
|
Tom Garth (7/8/2010) I think the answer is not quite correct. The action only changes the LEADING spaces on a line to tabs.
Yes, the answer could have been more specific. But the feature's basic purpose is to change spaces to tabs.
______________________________________________________________________ The greatest enemy of knowledge is not ignorance, it is the illusion of knowledge. - Stephen Hawking
|
|
|
|
|
Hall of Fame
       
Group: General Forum Members
Last Login: Friday, March 15, 2013 2:43 PM
Points: 3,924,
Visits: 1,554
|
|
Tom Garth (7/8/2010) I think the answer is not quite correct. The action only changes the LEADING spaces on a line to tabs.
Tabify Selected Lines – Replaces the leading whitespace on a line that contains the selection with tabs. Doesn’t matter whether the leading whitespace is selected, as long as part of the line is selected.
SQL DBA.
|
|
|
|