Change Default Check-out mode in Visual Studio 2013 - visual-studio

When we want to check out a file in VS 2013 this window would show:
I want to change this setting and every time a user wants to check out a file Lock type set to Check In.How I can do this?
thanks

It can be done this way:
Source Control Explorer -> Workspaces
select Workspaces, Then Edit , Then Advanced -> Change Location to Server

Related

how to see the location of a file in visual studio solution explorer

I can look for file with ctrl + , and get what i want
I can also right click the file tab and show the file in windows explorer
but the action above wont tell me where it is in the tree.
How can i see where the file lies inside the tree view in solution explorer?
You need Sync with Active Document.
In Visual Studio 2015, check
If you are using older version of VS and don't have that button, you need to check Tools -> Options -> Project and Solution -> Track Active Item in Solution Explorer.

Visual Studio - can't find "export template" option

I want to port a Phonegap app to Windows Phone 8. I need to open a Microsoft Visual Studio Solution File in Visual Studio 2012 for Windows Phone 8 and choose File -> Export Template.
However this menu entry doesn't exist. I googled a bit and find I can create a Hotkey pointing to File.ExportTemplate by using Tools -> Options -> Keyboard. But there is no File.ExportTemplate Entry in the List.
Second troubleshoot I found was looking in Tools -> Customize -> Command Tab -> Category "File", but again, no entry for File.ExportTemplate.
EDIT:
I should mention I'm running Windows 8 on a virtual Machine, VMWare Player 5.0.0.
EDIT 2:
I got myself a trial version Visual Studio 2012 and I can`t find the option there either.
Export Template can be found under the "Project" Category in VS 2017.
You can add the Export template option manually from the Tools->Customize menu.
First choose the location where you want to add the menu item (i.e. File menu):
Locate the Export template option and add it:
Please let me say you that now Visual Studio 2017 "Export Template..." works fine. You should open the project for template, and then click "Project" > "Export template..." and follow instructions by Microsoft.
According to this support page you might need to reset your settings.
I have reset the settings to 'Visual Basic Development Settings' which has indeed fixed the problem
If that doesn't work then there may be some condition with the solution you are editing that may be hiding this menu option. Please post more details on the project that you are trying to export from if resetting this doesn't work.

How to make TFS not auto check source control from Visual Studio?

every time I open my Solution in Visual Studio it tries to communicate and validate every file is update to date in source control. I am working on a very large project and was wondering how I could disable it for this Solution? Furthermore is I am curious as to also how to enable it?
In Visual Studio 2010:
1) Go to Tools -> Options -> Source Control -> Environment.
2) In "Source Control Environment Settings," select "Custom" from the drop down.
3) Uncheck "Get everything when a solution or project is opened."
(This is a global setting. It is not Solution-specific.)
You can install the TFS power tools, assuming you use TFS 2010 then you can download them here open up a visual studio command prompt and run the command tfpt connections this will bring up a dialogue which will show all of your available TFS servers and Collections.
There are 2 options you can try, firstly uncheck "Automatically connect to server on startup" this should stop VS trying to connect to TFS when you open a solution. If that doesn't work then click on the "+" next to the TFS server and select the collection you are using for source control. Hit the "Edit" button and you should see a checkbox called "Server is Offline" select this and you will no longer be connected to TFS.
To reverse the behaviour use the same tool to togle the values back to their defaults

How do I restore a property sheet to its default value?

Let's say I carry out the following steps immediately after first installing and opening Microsoft Visual Studio 2010:
File -> New -> Project -> Win32 Console App -> Finish.
Go to the Property Manager pane -> Expand Debug | Win32 -> Right click Microsoft.Cpp.Win32.user -> Select Properties.
Wildly change settings in a clueless manner, and generally act like a fool.
Click Apply, save the project, and close Visual Studio.
How do I restore the Microsoft.Cpp.Win32.user property sheet to its default, "factory" settings?
I'm not sure if this is the official way, but it does work...
The default property sheets are stored in the following directory:
%USERPROFILE%\AppData\Local\Microsoft\MSBuild\v4.0
And if you delete them, they will be automatically recreated by Visual Studio using the default settings next time that it is launched.
So you can simply delete Microsoft.Cpp.Win32.user.props from that directory and restart VS.
Putting it all together, from the command line, simply issue the following command:
del %USERPROFILE%\AppData\Local\Microsoft\MSBuild\v4.0\Microsoft.Cpp.Win32.user.props

How to check file is cheched out by whom?

How to check file is checked out by whom? I'm using Team Explorer in Visual Studio 2010
In source control explorer, find the file you're interested in, right click and go to properties. In there you will see a status tab that shows you where the file is checked out to (user & workspace) and any pending actions on the file.
See this images Notes : its related to vs 2008
step1:
step 2 :
Use View -> Other Windows -> Source Control Explorer
or
Use an 3rd party tool like TFS Sidekicks (http://www.attrice.info/cm/tfs/)

Resources