keyboard-shortcuts

Re-assign/override hotkey (Win + L) to lock windows

时光总嘲笑我的痴心妄想 提交于 2019-11-28 06:22:45
Is it possible to re-assign the Win + L hotkey to another executable/shortcut? Use-case - I would like to switch off the monitor of my laptop as soon as it is locked. I know of a executable which can lock and turn off the monitor but I do not want to change the way the system is locked (by running the program explicitly or by some other shortcut). It would be best if Win + L can be assigned to this executable. franc0is You need to set the following registry key to completely disable the Windows locking feature: [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\System]

Mapping <C-Tab> in my vimrc fails in Ubuntu

£可爱£侵袭症+ 提交于 2019-11-28 05:23:53
I want to map ctrl-tab to :tabn, and ctrl-shift-tab to :tabp. I had it working for gVim in Windows XP, but moved it to my .vimrc in Ubuntu 9.10 and it doesn't work (vim 7.2). Here's the relevant section of my .vimrc: nmap <C-Tab> :tabn<CR> nmap <C-S-Tab> :tabp<CR> nmap <C-t> :tabnew<CR> <C-t> works fine, so mapping the ctrl key doesn't seem to be a problem. I really have no idea where to start! What could be going wrong here, considering it worked fine under Windows? More info: I'm running Ubuntu 9.10 server, with xorg and fluxbox installed on top. I'm using xterm as my terminal. Ctrl-tab

Disable/Change Firefox Safe Mode Hotkey (Shift)

百般思念 提交于 2019-11-28 05:18:43
问题 Is there any way to change the firefox shift hotkey that makes firefox start in safe mode? I've set up some unit tests using Selenium and PHPUnit, but if I'm working on the machine while the tests are running then I frequently find I'm pressing shift as I type (holding shift as I select blocks of code is another big offender). This causes the test to fail (and time out) even if you click past the safe mode prompt that pops up. Is there a way to disable this hot key, or change the key to

Weird keyboard locks in IntelliJ IDEA (delete & arrow keys, etc.)

那年仲夏 提交于 2019-11-28 04:37:10
While working in IntelliJ IDEA, the keyboard occasionally locks in a way that delete or < > ^ keys don't work properly anymore, in a way that delete doesn't do anything anymore, and the arrow keys scroll the entire source code / editor section. I don't know if I am accidentially some kind of shortcut, but the only way I can get it back to normal again is closing and re-opening the IDE, which is annoying of course. I'm on Mac OS X Lion, latest IntelliJ IDEA CE (11.1.1), but also had it before with the previous versions. Check idea.log (Help | Reveal Log in ...) for exceptions. If you see PSI

ctrl-click goes to the declaration of the method I clicked. For interfaces with one implementation, how can I just directly go to that implementation?

北战南征 提交于 2019-11-28 04:30:00
I often have to debug java code which was written so that there is an interface and exactly one implementation of that interface. For instance there would be an interface Foo with exactly one implementation called FooImpl. In the following code if I ctrl-click on doThings it'll jump to Foo.java when I actually want to go to FooImpl.java to see the implementation. public void doStuff(Foo foo) { foo.doThings(); } When I end up at the interface I have to use ctrl-shift-r to open up FooImpl. It'd be really nice if I could do something lick ctrl-alt-click on doThings and end up inside FooImpl.java.

How to switch between visible buffers in emacs?

我们两清 提交于 2019-11-28 04:28:21
If I am in split-screen viewing 2 different buffers on Emacs and the cursor is on the top buffer, what's a quick way to move the cursor to the bottom buffer? Bonus question: if I know a command, is there an easy way to identify what key-combo it's bound to, if any? Rozuur To switch to other buffer use: C-x o . Describe key: C-h k . Here is a better solution when you open more than two windows(buffers) in one frame: (global-set-key (kbd "C-x <up>") 'windmove-up) (global-set-key (kbd "C-x <down>") 'windmove-down) (global-set-key (kbd "C-x <left>") 'windmove-left) (global-set-key (kbd "C-x <right

What is the most efficient way to reach a spot on sight on VIM?

房东的猫 提交于 2019-11-28 03:57:34
问题 Suppose you are on line 640 and notice the following on line 671: if (jumps_over(quick_fox[brown],the_lazy_dog)) the_lazy_dog.bark(); What would be the most key efficient way to navigate to "bark"? 回答1: This is a common misconception about Vim: Vim is not designed to be efficient. Vim is designed to use small building blocks in repeatable, often complex combinations, to achieve your goal. It is not an inherently efficient process, but for a subset of complex tasks, it's useful. For example,

Jupyter/IPython Notebooks: Shortcut for “run all”?

浪子不回头ぞ 提交于 2019-11-28 03:53:01
Is there a shortcut to run all cells in an IPython notebook? And if not, does this have a specific reason? For the latest jupyter notebook, (version 5) you can go to the 'help' tab in the top of the notebook and then select the option 'edit keyboard shortcuts' and add in your own customized shortcut for the 'run all' function. There is a menu shortcut to run all cells under Cell > "Run All". This isn't bound to a keyboard shortcut by default- you'll have to define your own custom binding from within the notebook, as described here . For example, to add a keyboard binding that lets you run all

JetBrains / IntelliJ keyboard shortcut to collapse all methods

烂漫一生 提交于 2019-11-28 03:21:27
I'm working on some legacy code that has a class that is 10,000+ lines of code and has 100s of methods. Is there a shortcut for any JetBrains IDE (since the shortcut would likely be shared across all of them) to collapse all the methods / functions so that only the method signatures are shown? Something like this: public String myMethod(String arg1, int arg2){...} public String mySecondMethod(String arg1, int arg2){...} lifus You may take a look at intellij code folding shortcuts . For Windows/Linux do: Ctrl + Shift + - For MAC use Command + Shift + - To unfold again do Ctrl + Shift + + or

Is there a shortcut to move between header and source file in VC++?

谁说我不能喝 提交于 2019-11-28 03:05:17
This is a feature I have grown accustomed to in Eclipse ( Ctrl + Tab ). Is there an equivalent in Visual C++? Kyle Alons In Visual Studio 2013 and later there is a default keyboard shortcut for this: Ctrl + K , Ctrl + O (You will need to hold down Ctrl and type ko and then release Ctrl ) In earlier versions, see: Visual Studio Macro to switch between CPP and H files or Open Corresponding File in Visual Assist In Visual Studio 2013 a default keyboard shortcut for this is Ctrl + K , Ctrl + O Leo Davidson You could add this macro to your VS config (via Tools -> Macros -> Macro Explorer) then