Keyboard shortcut to check-in current file in Visual Studio - visual-studio-2010

Is there any Keyboard Shortcut available in Visual Studio 2010 to Check-In the current editing file in TFS?

I'm using vs 2012 and I have the option to create one:
Tools > Options > Environment > Keyboard > Type "CheckIn" in Show commands containing > click on File.TfsCheckIn
Here I took Ctrl+P, Ctrl+C as shortcut and put "use new shortcut in: Global"
This works for me, think it might be the same in 2010

Related

Use VSCode Keyboard Shortcuts in Visual Studio 2019

Is there a way to use VSCode Keyboard Shortcuts in Visual Studio 2019?
Tools > Options > Environment > Keyboard,
on "Apply the following keyboard mapping scheme:" menu,
select "Visual Studio Code" and save.
Restart Visual Studio 2019 to take effect

How to open files from visual studio's 2013 Source Control Explorer in Notepad++

What i want to get: after double click on file in Source Control Explorer, connected to TFS, it must be opened in external text editor ( like Notepad++ ).
Problem: 'View with..' menu item is missing, so i don't know how to change default editor to files listed in Source Control Explorer.
Apps installed: Visual Studio 2013 + Team Explorer for Visual Studio 2013 + TFS 2010 on server
I installed the Power Tools...
http://visualstudiogallery.msdn.microsoft.com/f017b10c-02b4-4d6d-9845-58a06545627f
... and then in my context menu "Advanced" --> "View With" appeared.

ctrl-c ctrl-v stopped working in visual studio 2010 and 2012

Can't figure out what happened and not addons were installed lately.
Does anyone have an idea what could cause it?
If it is isolated to Visual Studio go to Tools--> Options --> Keyboard and verify that CtrlC and CtrlV are still bound to Edit.Copy and Edit.Paste respectively.
Go to visual studio
In Tools > Options > Keyboard
set mapping scheme dropdonw to Default and click on Reset button.
Restart Visual studio at once.
Your problem may resolved.
I had the same issue with Visual Studio 2022. Go to Tools > Options > Keyboard and set "Apply the following additional keyboard mapping scheme:" to (Default) and click on reset. Then restart visual studio.

What happened to VSFileFinder.Connect.ShowVSFileFinder in Visual Studio 2010?

I wanted to mimic the functionality in Eclipse where you can press CTRL + SHIFT + R to open a file, I read that this is possible but when I opened my own Visual Studio 2010 instance, I noticed that it was not contained in the Show Commands Containing search of the Keyboard options menu.
Has the name of this functionality changed in Visual Studio 2010?
I found Sonic File Finder which does the same thing:
http://www.jens-schaller.de/sonictools/sonicfilefinder/index.htm

Visual Studio Run as administrator shortcut

how do I create a shortcut that runs Visual Studio with Administrator rights?
Actually I have to navigate to the Visual Studio start menu folder, click on the icon with the right mous button and choose "Run as Administrator".
Right-click on the shortcut, select Properties. On the Shortcut tab, click the Advanced button (bottom right). Check the Run As Administrator box.
I know the OP was about how to create a shortcut that runs VS as admin, but using the steps below you can just always have VS launch as admin.
This is a copy of my answer to a similar post on SuperUser:
Option 1 - Set VSLauncher.exe and DevEnv.exe to always run as admin
To have Visual Studio always run as admin when opening any .sln file:
Navigate to C:\Program Files (x86)\Common Files\Microsoft Shared\MSEnv\VSLauncher.exe.
Right-click on VSLauncher.exe and choose Troubleshoot compatibility.
Choose Troubleshoot program.
Check off The program requires additional permissions and hit Next.
Click the Test the program... button to launch VS.
Click Next, then hit Yes, save these settings for this program, and then the close buton.
To have Visual Studio always run as an admin when just opening visual studio directly, do the same thing to the DevEnv.exe file(s). These file are located at:
Visual Studio 2010
C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE\devenv.exe
Visual Studio 2012
C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\IDE\devenv.exe
Visual Studio 2013
C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\IDE\devenv.exe
Visual Studio 2015
C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\devenv.exe
Option 2 - Use VSCommands extension for Visual Studio
Install the free VSCommands extension for Visual Studio (it's in the Visual Studio Extensions Gallery) and then configure it to always have Visual Studio start with admin privileges by going to Tools -> VSCommands -> Options -> IDE Enhancements -> General and check off Always start Visual Studio with elevated permissions and click the Save button.
Note: VSCommands is not currently available for VS 2015, but their site says they are working on updating it to support VS 2015.
My Opinion
I prefer Option 2 because:
it also allows you to easily turn off this functionality.
VSCommands comes with lots of other great features so I always have it installed anyways.
it's just easier to do than option 1.
What I was looking for was a way of running Visual Studio Solution files (.sln) as Administrator. I just found a pretty good way of doing this...
Place this content inside a file named RunAsAdministrator.reg:
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\VisualStudio.Launcher.sln\Shell\runas\Command]
#="\"C:\\Program Files (x86)\\Common Files\\Microsoft Shared\\MSEnv\\VSLauncher.exe\" \"%1\""
Double click the file to execute it.
Now, when you right click a file you'll have the option of running it as Adminstrator like this:
Here's the full story by the AWESOME David Ebbo: Open your solution files as admin
Create a shortcut to Visual Studio on your desktop
Right-click on the program
"Send to"
"Desktop (create shortcut)"
Open up properties
Right-click on the shortcut
"Properties"
Within the "Shortcut" tab, click on "Advanced..." (somewhat towards bottom right)
Select "Run as administrator" in the new window
Apply and OK all the windows.
Now when you use this shortcut, it should run the program as administrator.
The above answers works, but on Windows 10 you might bump with disabled advanced shortcut screen. So for windows 10 do the following:
Create shortcut to the solution file
Right click the shortcut => properties
Choose Shortcut tab
Under Target add the visual studio executable location before the sln path. For example:
"C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\devenv.exe" C:\mypath\example\example.sln
Press Advanced under the shortcut tab - you'll be able to edit the advances window.
Select "Run as administrator"
Press ok
Double click the shortcut - you should be able to run the solution as administrator now.
Ctrl + Shift + Clicking on Visual Studio 2019 shortcut seems to open Visual Studio Professional 2019 in admin mode.

Resources