How do I get all labels from Visual Source Safe - visual-sourcesafe

Yes - still using Visual Source Safe.
I know you can 'get by label' when searching for specific label text. But I want to get all labels that were applied since a specific date. Can that be done?

Yes, it's doable. You can right-click $/, click Show History. In the History Options dialog, check 'Recursive', 'Includes Labels' + 'Labels Only', specify the time range and you should get the results you want.

Related

What is the Visual Studio search/replace free entry "look in" field for?

In Visual Studio 2015 "Find and Replace" window, you can freely type anything you want into the "Look in" field:
The preset dropdown values are things like:
Current Window
All open documents
Entire solution
etc.
What is the purpose of allowing typing in this field? What could I possibly type in here which would make any sense?
And if I do type something like "foo bar" in there, what is the behavior when one of the "Find..." buttons is clicked? It seems to just search normally - maybe in the current solution (??).
Note - it even seems like mistaken entries can get stuck in there.
That allows one to specify directories. Or even multiple directories. Or even combinations of built in locations and directories. Separate each location with a semicolon.
Example:
Entire Solution;C:\Source\18.1
Then to remove an entry, click on the ... button. This will bring up a dialog box titled "Choose Search Folders". Then on the right hand side, selected the entry you wish to remove and then click on the button that looks like a less- than, or left-angle bracket. This will remove the entry.

how to provide ignore regex for sublimerge?

I'd like to be able to provide a regular expression for text to ignore when creating diff's with sublimerge. Is that possible?
From Borys, the author of sublimerge:
Please take a look at http://www.sublimerge.com/sm3/docs/configuration.html#default-settings-diff-algorithm - there is a „intraline_unimportant_regexps” setting that should do what you want, however this is not a live setting so it requires the diff to be re-processed.
In sublimerge3 (2?) there is a "Recompare buffers" option in the "sublimerge" section of the right click context menu (when you're viewing a diff). Also F5 will re-process the diff.
Note that at present this only changes the highlight on "unimportant" differences, they still appear when you 'go to next diff'.

Change hard-coding number along all my code

I have to take some long code that I wrote when I didn't know too much and change all the hard-coded numbers to something else .
The numbers are positions on screen, and now I need to make them relative to screen size.
So every 160 on code should turn into winSize.width/2, and 80 = winSize.width/4.
Is there a simple way to do that in Xcode?
Press
Command+F
when you are ion the file which needs changes.
You will see a bar at the top. On left side there is Find written. Click on it. Yoy will get an option Replace.
Choose Replace.
In String Matching write 160.
In below filed write winSize.width/2. Click on Replace All button.
Do it for value 80 as well.
Or Right Click -> Refactor... -> Rename also works as well as F&R. It gives you an automatic diff like preview of the changes as well, which I think F&R does but you have to click an additional button to get at it.
You can use the Find and Replace from the Project Navigator view

How can I change the template CodeRush uses when it extracts a method?

When I extract a method in CodeRush, it has some default formatting. I'd like to change it. Specifically, when I choose the location of the extracted method, CodeRush smashes it in, directly above the method I put the location marker at.
So:
When I choose to drop the extracted method, like this:
It ends up looking like this:
What I want is for it to have some control over how the method looks, at the moment I want to add some blank lines between it and the next method. How can I do that?
Open the DevExpress -> Options dialog;
Go to the Editor | Code Formatting | Blank Lines option page;
Toggle the 'After multi-line members' option.
I requested this here: http://www.devexpress.com/Support/Center/p/S130722.aspx
It got implemented here: http://www.devexpress.com/Support/Center/p/S19229.aspx
There's now a massive formatting subsystem I spent 3 hours fighting that tries to outdo ReSharper's massive formatting subsystem which both need to be able to survive VS Autoformat (CtrlK D) and don't always.
Now you know it's there, I'd appreciate a quick summary from you as to whether you were able to make it do what you wanted!

Visual studio Reformat Code/Document

I can't find the Reformat button, I know I can use ctrl+k+d, but I wish to have also the toolbar with the button. can someone help me ?
You can use Edit > Advanced > Format Document and you can also move this as a button to any toolbar. Go to Tools > Customize > Commands, select Toolbar and push Add Command button. Then select Edit category and find Document Format.
Apparently VS2010 (maybe others) hide certain commands depending on the style you choose. I chose Web Dev (code) as my choice and the Document Format is not present to be added to a toolbar. But, if I change to C# Code (tools>Import/Export) then the Document Format command is right there in the Edit menu where others here have said it is.
I had to import the C# Dev layout, but unchecked colors and code formatting options (so it won't overwrite those). What section you must import to get the format document button, I don't know, I didn't experiment that deep.
Seems stupid MS chose to force us down specific paths for layout with no convenient way to get out of it.
If you can't find it in the Edit menu: you can also find it if you press CTRL + P and then type >format. The shortcut is SHIFT + ALT + F

Resources