April 11, 2018 at 2:05 pm
In SSMS 2012 (and possibly earlier) I could find and replace Tabs in the query window.
In SSMS v17.5, SQL can't find Tabs.
Is there some cool new mystery setting or is this just another broken piece of the search dialog?
Thanks!
April 19, 2018 at 8:30 pm
This was removed by the editor as SPAM
April 19, 2018 at 8:31 pm
This was removed by the editor as SPAM
April 27, 2018 at 10:37 am
d_george - Wednesday, April 11, 2018 2:05 PMIn SSMS 2012 (and possibly earlier) I could find and replace Tabs in the query window.
In SSMS v17.5, SQL can't find Tabs.
Is there some cool new mystery setting or is this just another broken piece of the search dialog?
Thanks!
Just curious, but are you actually searching for tabs, or just trying to do a find and replace?
Steve (aka sgmunson) 🙂 🙂 🙂
Rent Servers for Income (picks and shovels strategy)
April 27, 2018 at 11:22 am
Find & replace.
April 27, 2018 at 11:53 am
d_george - Friday, April 27, 2018 11:22 AMFind & replace.
And have you tried copying and pasting existing tabbed text into the search box ?
Steve (aka sgmunson) 🙂 🙂 🙂
Rent Servers for Income (picks and shovels strategy)
April 27, 2018 at 11:57 am
Does it work for you?
April 27, 2018 at 12:11 pm
d_george - Friday, April 27, 2018 11:57 AMDoes it work for you?
That doesn't answer the question. But to answer yours, I'll have to try it when I get home from work today, as my installation of SQL 2017 w/SSMS is new within the last 3 weeks, and I haven't had much chance to play with it yet.
Steve (aka sgmunson) 🙂 🙂 🙂
Rent Servers for Income (picks and shovels strategy)
April 28, 2018 at 12:47 am
Yes you can Find/replace TAB in SSMS17.
With a normal search, you cannot type a TAB into the search box, but you can copy a TAB and paste it into the search box.
An alternative is to use the Regular Expressions from the search option
SSMS is now using the Visual Studio regex language. Using Regular Expressions in Visual Studio,
April 28, 2018 at 4:16 am
I am glad to hear it works for you, that leads me to believe it is a setting.
I am unable to copy/paste a tab in the search box and find it.
If I typed the string "ThereIsATabNow AndNowIAmPostTab," or if I copy/pasted the same from notepad, I am unable to find the string, tab or subset of "w A" from the search.
April 30, 2018 at 7:44 am
Wondering if you have any kind of setting that automatically translates TABs into spaces?
Steve (aka sgmunson) 🙂 🙂 🙂
Rent Servers for Income (picks and shovels strategy)
April 30, 2018 at 7:47 am
Same. That's why I asked "Is there some cool new mystery setting or is this just another broken piece of the search dialog?"
May 1, 2018 at 1:53 am
To see what you've actually got in the editor, turn on visible whitespace chars with 'Edit => Advanced => View Whitespace '
May 4, 2018 at 6:38 am
I do not have an 'Edit => Advanced => ViewWhitespace' tree in v17.5, do you?
Under Tools=>Text Editor=>PlainText=>Tabs I set indenting to None, Tab Size to 8 and Keep Tabs. I did thesame for the Transact SQL and All Languages sections.
Restarted.
No change in search behavior.
If I execute the following into text and search in Editor it does not find the tabs. If I search for tabs in the Results (which is a different Find dialog, why?) it does find the Tabs.
SELECT
CONCAT('ThereIsATabNow',CHAR(9),'AndNowIAmPostTab')
,CHARINDEX(CHAR(9),CONCAT('ThereIsATabNow',CHAR(9),'AndNowIAmPostTab'))
,'ThereIsATabNow AndNowIAmPostTab'[Copied from Results]
Possibly another editorsetting someplace I overlooked?
May 4, 2018 at 7:07 am
I do not have an 'Edit => Advanced => ViewWhitespace' tree in v17.5, do you?
Viewing 15 posts - 1 through 15 (of 19 total)
You must be logged in to reply to this topic. Login to reply