By default, Visual Studio 2012, and others possibly, deletes an enabled breakpoint upon clicking it. This to me feels unnatural because clicking a disabled breakpoint enables it. Why then would a subsequent click delete it? I would expect the opposite, which is disabling the breakpoint, similar behaviour to Xcode.
Is there a setting somewhere that allows me to modify this behaviour, to clicking to toggle between enabled and disabled?
i don't know about a setting to change the single click behavior, but a little experimenting revealed that shift clicking the breakpoint disables instead of deletes it. this is in visual studio 2019. i found your question because i was wondering the same thing.
Related
So I've seen a couple of questions about Visual Studio's Ctrl+Tab but none of them were referring to my problem
My Visual Studio will randomly start acting funny. Sometimes, when I hit on Ctrl+Tab to change tab, the navigation pane appears for half a second an disappears. If I hold Ctrl+Tab, it'll just appear and disappear constantly, disappearing too early to even switch one tab. When it disappears it gives the keyboard focus back to whichever document I was on (so no other program actually intercepts the focus)
Then it will randomly accept my Ctrl+Tab and stay on screen once every X tries for some reason.
I double-checked my Visual Studio parameters (which have never changed) and the shortcuts are correctly set: Ctrl+Tab to Window.NextDocumentWindowNav and Ctrl+Shift+Tab to Window.PreviousDocumentWindowNav. I try removing them and resetting them with no success.
Anyone ever had this problem? I don't know what is intercepting my Ctrl+Ctrl+Tab. When I restart Visual Studio, it'll work fine again for a while until at some point Ctrl+Tab messes up again for no reason.
Anyone ever had this bug? Any tips on how to figure out what it's from and how to fix it? I'm on Visual Studio 2013. If it's any help, I also have Resharper 8.2.1 with it
Thanks!
EDIT
A few extra details:
Disabling Resharper doesn't remove the problem, still happens
I tried setting the NextDocumentPaneNav shortcut to another combination, bug still happened
So basically it's not another running program catching Ctrl+tab for some reason, it's literally Visual Studio not willing to show the navigation pane for more than a micro second
I have a asp.net application. Some times I need to put many breakpoints. I know usage of F5, F10, F11 to navigate between line of code. If I want to bypass all the breakpoints for time being but want to keep all breakpoints alive for future, how can I do this?
Use Debug->Windows->Breakpoints window, you may disable (by using checkbox) or delete any/all breakpoints from there. You may also configure custom VS shortcut for this VS 2012 Add Shortcuts for "Disable all breakpoints" and "Enable all breakpoints"?.
Alternatively if you use local IIS you may run application without debugger attached, then if you want to start debugging use Debug->Attach to, select w3p.exe and start debugging (I use this setup often).
The document well is the feature in VS 2015 that closes a tab automatically when you switch to a different tab, unless you click the "Keep Open" button in the tab.
I find this very annoying, because often I will open a tab during debugging only to have it disappear after which I have to go hunting for the file again.
Is there a way to disable this feature, i.e. to keep all tabs open permanently, the way VS 2013 did?
I've looked in Tools\Options, and also did a quick web search, but couldn't find a way to do this.
Uncheck the Allow new files to be opened in the preview tab option:
I have a minor annoyance with Visual Studio. In the bottom right hand corner of Visual Studio, there is a INS/OVR button to toggle Insert/Overwrite. I always have this button set to INS, and I always want it to be set to INS.
However, sometimes when I build the solution, Visual Studio changes this back to OVR. I have to click on the button to change it back to INS, which is slightly inconvenient.
I do not know why this setting sometimes changes.
Is there anyway I can permanently disable the overwrite mode in Visual Studio or prevent solution builds from changing this setting?
Visual Studio, Tools > Options > Environment > Keyboard, remove the shortcut binding for Edit.OvertypeMode
I don't think you can permanently turn insert/overwrite off. Are you accidentally pressing insert on your keyboard? You can press the insert key on your keyboard or Shift+0 on the numpad to toggle it back again.
Go to Visual Studio Code's settings and type "overtype" in the search bar, and set it to 'never'.
Hope this helped! :)
Sometimes visual studio wont disable overtype even if you hit insert with numlock on, If this happens just close script and open it again and it will work. This is a bug in visual studio.
In VS2010 when my intellisense (for C#) pops up the first selected item is not highlighted. This means i have to press down/up-arrow before i press dot/enter/parenthesis to get the full word.
This only happens with the new intellisense (the one that searches everywhere and not only in the beginning).
Also, how do i switch between the old and new intellisense? This seems to happen automatically sometimes so i guess there's some hotkey i keep pressing all the time without knowing.
You can go to Edit -> IntelliSense -> Toggle Completion Mode. I thought there was a keyboard shortcut for it, but it appears not on my current installation... that may be a side-effect of installing ReSharper though. You can always set a shortcut if you want one, of course.