keyboard-shortcuts

Visual Studio : short cut Key : Duplicate Line

大城市里の小女人 提交于 2019-11-30 06:08:38
问题 Is there a shortcut for Duplicate Line command in Visual Studio 2008? Some similar examples: in Notepad++ , I can duplicate the current line with: Ctrl + D in EditPlus : Ctrl + J in NetBeans : Ctrl + Shift + ↓ / ↑ in Eclipse , Ctrl + Alt + ↓ / ↑ in Vi/Vim , yy p etc. 回答1: In Visual Studio 2019 Ctrl + D In Visual Studio 2017 (v15.6 and after) Ctrl + D In Visual Studio 2017 (pre v15.6) (edit) This feature is now built-in in VS2017: Ctrl + E , V duplicates a line if nothing is selected, or

Recent Visual Studio update introduced shortcut used to create closing curly brace on my keyboard: how to find offending command?

╄→гoц情女王★ 提交于 2019-11-30 06:01:32
问题 A recent update to Visual Studio has introduced a new or updated shortcut key that on my non-English keyboard allowed me to create closing curly braces ( AltGr + shift + * ). This shortcut still works as expected outside of VS (e.g. in notepad) but in VS it is now associated to some text selection command (like select text from the cursor position to the bottom of the file). How can I find the offending shortcut key command among the hundreds in VS? I remembered the existence of a VS add-in

Auto-generate a try catch block in visual studio 2010

為{幸葍}努か 提交于 2019-11-30 06:01:21
Anyone know if there is a keystroke shortcut or option to autogenerate a try/catch block around a statement in Visual Studio 2010? I can see what exceptions are thrown if I look at the overlay documentation when I hover over a statement. I'd like to right click -> generate try/catch, as it would save a lot of time in handling all possible cases. Is this possible? sshow Using the mouse Mark your code Right-click Select Surround with... Double-click try Using the keyboard #1 Mark your code using Shift , Ctrl + A , or whatever works for you Press Menu key / Application key (alternatively Shift +

How can I allow ctrl+a with TextBox in winform?

淺唱寂寞╮ 提交于 2019-11-30 05:34:19
I'm asking the question already asked (and even answered) here: Why are some textboxes not accepting Control + A shortcut to select all by default But that answer doesn't work for me. I have this code: public class LoginForm : Form { private TextBox tbUsername; public LoginForm() { tbUsername = new TextBox(); tbUsername.ShortcutsEnabled = true; tbUsername.Multiline = false; Controls.Add(tbUsername); } } The textbox shows up, I can write on it, I can cut, copy and paste text on it without any problems. But when I try to press Ctrl + A I only hear a "bling" similar to the bling that you hear if

How can I un/comment out code in MySQL Workbench using a keyboard shortcut?

半腔热情 提交于 2019-11-30 04:55:36
I went to the official Workbench keyboard shortcut page and found this: Function | Keyboard Shortcut | Context -------------------------------+-------------------+----------- Comment/Uncomment lines of SQL | Modifier+/ | SQL Editor However, Control + / doesn't work. I have MySQL Workbench installed on a Windows machine. How do you get the shortcut to work? Thanks for filing the bug report, it's annoying. If you have a full size keyboard try using the division symbol. i.e. The CONTROL + "/" using the division key above the keypad instead of the "?/" key on the main keyboard. It's not nearly as

Changing window faster in Emacs (or repeating last shortcut with a single strike)

我怕爱的太早我们不能终老 提交于 2019-11-30 04:53:59
问题 if I want to change windows in emacs I do C-x o and that's fine with me...but when I want to change window lots of times in a row C-x o is not so convenient...is there a way to change window with just one strike after first C-x o ? and in general...is there a (single) strike that would repeat my last shortcut? 回答1: Check out windmove; it lets you just hold down a modifier key and press an arrow key to move to the window in that direction. I've been using it for years with the default modifier

Ctrl Alt F8 disconnects displays?

假装没事ソ 提交于 2019-11-30 04:39:17
Learning debugging in PhpStorm and keep accidentally hitting Ctrl + Alt + F8 . I use 3 displays this disconnects the two remotes and goes back to just the laptop. I cannot see this documented anywhere (running Win 10). The worst part is that hitting the combination again does NOT reconnect the displays. Anyone know either: combination to reverse the effect - IE reconnect displays how I can stop it or a tool that will help me find out where it is firing from (motherboard/Windows/Intel/nVidia/USB monitor driver - goodness knows where). Grateful for a helping hand. F8 in various combinations are

Visual studio commands don't work. ctrl + f5 doesn't run my application

删除回忆录丶 提交于 2019-11-30 04:19:54
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? 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 :) 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

How to skip loops while debugging Java code?

五迷三道 提交于 2019-11-30 03:08:53
This is not a duplicate of How to come out of while loop during debugging . See the comment on this answer https://stackoverflow.com/a/8107702/1391924 by the author of this question. While debugging, we can use short-cut keys like F8 to resume, F7 to step return, F5 to step into, F6 to step over. Is there any short-cut key to skip loops (for,while and do-while) while debugging Java code? In the picture shown below Currently debug cursor is at line no 57. Is there any short cut key when pressed it debug cursor should come out of innermost loop (for,while or do-while. Here while loop) and pause

Jump to next error / code highlighted in red

↘锁芯ラ 提交于 2019-11-30 03:07:39
When dealing with merge conflicts it is common that the >>>>>> and ====== inserted by DCVS are syntactically incorrect for the file I'm in and show up as highlighted in red. When dealing with merge conflicts it would be useful to have commands to jump to these error. When I type :cnext I just get the message "No Errors". These are Mercurial merge conflicts so I can't use Fugitive, but I generally prefer editing merge conflicts by hand anyway. Is there a way to jump to the next syntax error in the file? I think these errors are dictated by the syntax highlighting file. Nguyen You can use :lopen