keyboard-shortcuts

Copying GNU screen scrollback buffer to file (extended hardcopy)?

偶尔善良 提交于 2019-11-28 14:57:42
How do I easily copy the GNU screen scrollback buffer to a file? IE, a more powerful version of the 'hardcopy' command? In GNU screen, I can use " ctrl - a ESC " to enter the scrollback buffer. I could then mark the entire buffer and use " ctrl - a ctrl - ] " to paste it into an emacs buffer, thus saving it to a file. However, this is tedious. Is there a screen command that'll simply copy the scrollback buffer to a file, like 'hardcopy' does for the visible portion of the screen? Bill To write the entire contents of the scrollback buffer to a file, type Ctrl + A and : to get to command mode,

SQL Server Management Studio – tips for improving the TSQL coding process

痞子三分冷 提交于 2019-11-28 14:56:07
I used to work in a place where a common practice was to use Pair Programming. I remember how many small things we could learn from each other when working together on the code. Picking up new shortcuts, code snippets etc. with time significantly improved our efficiency of writing code. Since I started working with SQL Server I have been left on my own. The best habits I would normally pick from working together with other people which I cannot do now. So here is the question: What are you tips on efficiently writing TSQL code using SQL Server Management Studio? Please keep the tips to 2 – 3

How do I duplicate a line or selection within Visual Studio Code?

≯℡__Kan透↙ 提交于 2019-11-28 14:55:05
Using Microsoft's Visual Studio Code, how do I duplicate a line of code and then move it up and down? (Similar to Sublime's cmd + shift + d behaviour) It's a feature that I use constantly, and am struggling using Visual Studio Code without it. Benjamin Pasero The commands your are looking for are editor.action.copyLinesDownAction and editor.action.copyLinesUpAction . You can see the associated keybindings by picking: File > Preferences > Keyboard Shortcuts Windows: Shift + Alt + Down and Shift + Alt + Up Mac: Shift + Option + Down and Shift + Option Up Linux: Ctrl + Shift + Alt + Down and Ctrl

Comment shortcut Android Studio

让人想犯罪 __ 提交于 2019-11-28 14:42:03
问题 I'm searching for useful Android Studio keyboard shortcut for commenting code, as in Sublime Text or Eclipse. When I press either cmd + / or cmd + maj + / nothing happens... 回答1: Mac With Numeric pad Line Comment hold both: Cmd + / Block Comment hold all three: Cmd + Alt + / Mac Line Comment hold both: Cmd + + = Block Comment hold all three: Cmd + Alt + + = Windows/linux : Line Comment hold both: Ctrl + / Block Comment hold all three: Ctrl + Shift + / Same way to remove the comment block. 回答2

Keyboard shortcuts in Eclipse Oxygen

∥☆過路亽.° 提交于 2019-11-28 14:34:13
I was working in Eclipse yesterday, when my keyboard shortcuts stopped working. They all worked until yesterday. Pressing Ctrl + Shift causes a popup saying the cursor does not (yet) have a detectable image. Ctrl works fine, and so does Shift + a letter. Only Ctrl + Shift +any key causes this error. Even just pressing Ctrl + Shift by itself causes the popup: I use Eclipse with the Darkest Dark Theme plug-in on Windows 10. What is causing this error, and how can I fix it? Thanks in advance. Try to uninstall the Darkest Dark Theme plug-in. This closed source plug-in does load-time weaving to

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

馋奶兔 提交于 2019-11-28 13:58:10
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 that allowed printing out all currently set shortcut keys to attempt generating a list I could quickly

Most useful shortcut in Eclipse CDT

假如想象 提交于 2019-11-28 13:11:45
问题 I would like to make a cheat sheet presenting the most useful (and time saving) shortcut for Eclipse CDT (C++). Can you share what are the most useful shortcuts that you use in CDT? Please, post only general shortcuts (available when doing C++) or CDT specific. 回答1: Ctrl + Tab : Switch between source and header files. 回答2: Summary of all the shortcuts in this thread and some more. Ctrl + Tab - Switch between source and header files. Ctrl + Shift + T - Open Element Ctrl + Shift + R - Open File

Duplicate a whole line in Vim

馋奶兔 提交于 2019-11-28 13:06:38
问题 How do I duplicate a whole line in Vim in a similar way to Ctrl + D in IntelliJ IDEA/Resharper or Ctrl + Alt + ↑ / ↓ in Eclipse? 回答1: y y or Y to copy the line (mnemonic: y ank) or d d to d elete the line (Vim copies what you deleted into a clipboard-like "register", like a cut operation) then p to p aste the copied or deleted text after the current line or P to p aste the copied or deleted text before the current line 回答2: Normal mode: see other answers. The Ex way: :t. will duplicate the

Why might my Emacs use spaces instead of tabs?

一笑奈何 提交于 2019-11-28 12:58:15
I am trying to diagnose this problem. TAB creates 4 spaces instead of a 4 col TAB like I want. But I don't think it should because C-h v indent-tabs-mode on the buffer in question says it is set to t . When I check my keybindings, TAB is set to c-indent-line-or-region . Does this function ignore my tabs-mode? Tabs and indentation in Emacs is a considerably more complex subject than most people anticipate. I highly recommend spending some time reading about it -- it will almost certainly save you some confusion in the long run. The following page at the Emacs Wiki groups together most of the

Application Level shortcut keys in WPF

那年仲夏 提交于 2019-11-28 12:23:47
In WPF application I am currently trying to bind a Command to launch a calculator Tool form any where in the application using shortcut keys, I have created a command but not getting how to map commands and shortcut keys to create universal shortcut keys in my application. Thanks in advance. Grokys You can do this in xaml - see the example in the documentation for the KeyBinding class: <Window.InputBindings> <KeyBinding Command="ApplicationCommands.Open" Gesture="CTRL+R" /> </Window.InputBindings> Update: Looks like you can't actually bind a KeyBinding to a ViewModel using just xaml if you're