views:

2144

answers:

10

I used to be able to build and run my console applications by hitting ctrl + f5 in visual studio. This no longer works. I looked everywhere. Does anyone know how to re-enable this command?

A: 

Chances are you changed your default settings. Go to Tools->Import and Export Settings... Select 'Reset all', Click 'Next' and choose the 'Visual C# Development Settings' option.

Matthew Vines
+2  A: 

Hi,

I have had a similar problem where some of my shortcuts (such as the Alt+Shift+F10 intellisense shortcut) stopped working...

I fixed it by going to Tools -> Import and Export Settings -> Reset all settings.

I was able to reimport my saved settings after I had reset them also but only with out the broken short cuts!

Hope this helps!

Chalkey
+1  A: 

Before you trash all your settings, consider just resetting the Keyboard preferences:

In Tools / Options / Environment / Keyboard there's a drop-down for your Keyboard scheme and next to it a Reset button. Make sure the mapping scheme is set to whatever you want then hit the Reset button.

Stuart Dunkeld
+6  A: 

Might be a ridiculous suggestion but does your keyboard have some kind of "F Lock" key? Happened to me after I got a new keyboard and accidentally hit it. Didn't even know it was there :)

Magnus Skog
This has happened to me as well a number of times. I wish I could get rid of that damn F lock key....
Curtis
Use something sharp and remove it. You just inspired me to do it myself! :)
Magnus Skog
A: 

One day it happens to me that i make some changes to the project and solution files in my ASP .NET project, and when i open it on visual studio, it allows me to rebuild but not to run nor debug ( The menu option didn't appear and the CTRL+F5 didn't work).

What i do to make it work again was right click over the solution, into the visual studio "Solution Explorer" tree tab in the right, where all the files of your project appear, and select properties.

Then, select there a project, and put it as start project.

Perhaps this is your problem here. If not, i hope it can help someone in the future.

;)

tomasofen
+1  A: 

I had a similar question, and reading this thread led me to an answer which is similar to the f-Lock key answer. I'm using a new laptop, and re-introducing myself to programming. When the book said press Ctrl-F5 I did so and the only thing that happened was that my monitor got slightly dimmer, though it returned to normal brightness as soon as I clicked on a few other things. What I noticed after reading this thread is that this new-fangled keyboard has a blue Fn key, and all the function key names are printed in blue. In other words, to get the function key functionality you have to be holding down the blue Fn key when you tap the actual function key. So F5 becomes Fn-F5 and Ctrl-F5 becomes Ctrl-Fn-F5. This is on a Dell Inspiron 1564. This is not quite as egregious as a F-Lock key, so I hope I'll get used to it soon.

Larry
A: 

Thanks Chalkey! It worked perfectly! It was so annoying when it wasn't working!!!!

Bri
A: 

I fixed this by pressing Fn + F5, this is right next to the Windows Button.

YeomansLeo
A: 

I have tried every suggest on this page, but I still cant denug using F10 or F11.

Really annoying.

Tools\Options\Environment\Keyboard shows my command of Debug.StepInto as F11, but it just doesnt work.

Any more ideas good people??

aWrongun
A: 

I have tried every suggest on this page, but I still cant denug using F10 or F11.

Really annoying.

Tools\Options\Environment\Keyboard shows my command of Debug.StepInto as F11, but it just doesnt work.

Any more ideas good people??

aWrongun