When I'm using VS 2012 and I'm running my web application, Visual Studio locks all (compiled) source files and prevents me from editing them. Which is fine, as the debugger is attached and I will still want it to show me the actual executing code when it breaks.
When I try and type or paste something in a file, it will give me a nice popup telling me me I can't change anything while the code is running.
However, and this is the annoying part, some action may move my cursor after closing said popup. When I press Enter the cursor moves to the start of the line. When I try to paste something, it gets worse, because it will jump to the end of the file. And then I have to find the spot I was looking at, which is quite annoying if the file is fairly large. And having to look it up again also complete breaks my train of thought.
Is there any way to prevent this behaviour? When I can't change something, informing me is fine. But I want the cursor to remain exactly where it was and not jump all over the place.