keyboard-shortcuts

How can I toggle the main menu visibility using the Alt key in WPF?

断了今生、忘了曾经 提交于 2019-11-29 18:59:05
问题 I'd like the main menu in my WPF app to behave like the main menu in IE8: it's not visible when the app starts pressing and releasing Alt makes it visible pressing and releasing Alt again makes it invisible again repeat until bored How can I do this? Does it have to be code? Added in response to answers submitted, because I'm still having trouble: My Shell code-behind now looks like this: public partial class Shell : Window { public static readonly DependencyProperty IsMainMenuVisibleProperty

Shortcut to comment out a block of code with sublime text

烂漫一生 提交于 2019-11-29 18:50:06
I want to comment out a block of code in sublime text. I see it in RailsCasts, but don't think he uses sublime text ... to do the following ... if (uncommented) some uncommented example # if (commented) # some commented example code # end end Is there a shortcut in sublime text that I can use to insert the block of #'s? Randall Ma The shortcut to comment out or uncomment the selected text or current line: Windows: Ctrl + / Mac: Command ⌘ + / Linux: Ctrl + Shift + / Alternatively, use the menu: Edit > Comment For the block comment you may want to use: Windows: Ctrl + Shift + / Mac: Command ⌘ +

Is there a keyboard shortcut (hotkey) to open Terminal in macOS?

吃可爱长大的小学妹 提交于 2019-11-29 18:50:06
One of my primary tools used for programming is my Terminal. It makes my programming process more efficient when I'm able to quickly open a Terminal window. In Ubuntu, I was using ( window + Alt + T ) to open Terminal. But now I use a Macbook at my programming job. Sometimes I use Spotlight to search "Terminal", and press Enter. I'd like to know if I can assign a keyboard hotkey to do it. Thanks I tested the following procedure under OS X 10.11.3 (El Capitan). Launch Automator. Create a document of type “Service”. In the document, add a “Run AppleScript” action. Here's the AppleScript to paste

Most useful shortcut in Eclipse CDT

僤鯓⒐⒋嵵緔 提交于 2019-11-29 18:36:00
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. pdemarest Ctrl + Tab : Switch between source and header files. w00t 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/Resource. Ctrl + = - Explore Macro Expansion. Ctrl + Space - Show proposals to complete you've

Eclipse jump to closing brace

孤人 提交于 2019-11-29 18:34:28
What is the keyboard short cut in Eclipse to jump to the closing brace of a scope? ninesided Place the cursor next to an opening or closing brace and punch Ctrl + Shift + P to find the matching brace. If Eclipse can't find one you'll get a "No matching bracket found" message. edit: as mentioned by Romaintaz below , you can also get Eclipse to auto-select all of the code between two curly braces simply by double-clicking to the immediate right of a opening brace. Romain Linsolas As the shortcut Ctrl + Shift + P has been cited, I just wanted to add a really interesting feature: just double-click

Duplicate a whole line in Vim

会有一股神秘感。 提交于 2019-11-29 18:30:39
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? Mark Biek 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 Benoit Normal mode: see other answers. The Ex way: :t. will duplicate the line, :t 7 will copy it after line 7, :,+t0 will copy current and next line at the beginning of

How disable navigation shortcuts in frame c# WPF

拟墨画扇 提交于 2019-11-29 18:18:30
问题 How can I disable the navigation shortcuts in a frame (for example the "Backspace" for navigation backward and "Alt+Right arrow" for navigation forward). I want to use other keyboard functions, so I want to disable the navigation shortcuts of the frame. Who can help me? 回答1: there is a more elegant solution where Attached behaviours can be used to disable navigation without actually extending a frame. create an attached-behaviour : using System.Windows; using System.Windows.Controls; using

Override Ctrl-TAB in EMACS org.mode

99封情书 提交于 2019-11-29 17:44:42
问题 I would like to use Ctrl + Tab in EMACS for my own use, but Emacs org mode already has this bound. How can I use my own binding instead of the org-mode binding. In my .emacs file I use: (global-set-key (kbd "<C-tab>") 'switch-view ) and it works everywhere except in org-mode 回答1: The key binding you describe is defined in org.el like this: (org-defkey org-mode-map [(control tab)] 'org-force-cycle-archived) This means that it is only valid in org-mode-map , one of org-mode's local keymaps. The

Chrome extension error with 'onCommand'

风格不统一 提交于 2019-11-29 16:51:06
I'm getting the error "Uncaught TypeError: Cannot read property 'onCommand' of undefined" while running a Chrome Extension with the following content: manifest.json: { "name": "Test", "description": "Key command test.", "version": "1.0", "manifest_version": 2, "content_scripts": [ { "js": ["background_test.js"], "matches": [ "http://*/*", "https://*/*"] }], "commands": { "Ctrl+M": { "suggested_key": { "default": "Ctrl+M", "mac": "Command+M" }, "description": "Ctrl+M." }, "Ctrl-L": { "suggested_key": { "default": "Ctrl+L", "mac": "Command+L" }, "description": "Ctrl+L" } } } background_test.js:

Visual Studio 2010 extension for Go To Interface Implementation? [duplicate]

 ̄綄美尐妖づ 提交于 2019-11-29 16:20:49
问题 This question already has answers here : Closed 6 years ago . Possible Duplicate: How do you quickly find the implementation(s) of an interface’s method? I like ReSharper's Go To Implementation feature but I often keep ReSharper disabled. Is there an equivalent extension for Visual Studio 2010? 回答1: I'm looking for the extension for this little "go to implementation" too. But unfortunately I couldn't find any. May be we will have to wait next version of visual studio or enable ReSharper back