keyboard-shortcuts

Sending Windows key using SendKeys

喜欢而已 提交于 2019-11-27 01:41:49
I am working on shortcuts in C#. I succeed implementing Ctrl, Alt and Shift with SendKeys. Like this; Ctrl + C : System.Windows.Forms.SendKeys.SendWait("^c"); or Alt + F4 : System.Windows.Forms.SendKeys.SendWait("%{F4}"); But I can't send "Windows Key" with SendKeys. I tried ex: Win + E : .SendWait("#e") but it's not working. What should I use instead of "#"? Thanks. OK turns out what you really want is this: http://inputsimulator.codeplex.com/ Which has done all the hard work of exposing the Win32 SendInput methods to C#. This allows you to directly send the windows key. This is tested and

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

生来就可爱ヽ(ⅴ<●) 提交于 2019-11-27 01:17:37
问题 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. 回答1: You need to set the following registry key to completely disable the Windows

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

↘锁芯ラ 提交于 2019-11-27 00:55:38
问题 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

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?

…衆ロ難τιáo~ 提交于 2019-11-27 00:27:16
问题 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

How to switch between visible buffers in emacs?

為{幸葍}努か 提交于 2019-11-27 00:25:59
问题 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? 回答1: To switch to other buffer use: C-x o . Describe key: C-h k . 回答2: 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

How to auto import the necessary classes in Android Studio with shortcut?

爷,独闯天下 提交于 2019-11-27 00:24:51
I've just switch to Android Studio 0.5.1, and the things going so slow here, because nothing works in the regular way... How do I import the necessary classes with shortcut? I mean like this ones? import android.os.Bundle; import android.support.v7.app.ActionBarActivity; import android.view.Menu; import android.view.MenuItem; Go to File -> Settings -> Editor -> Auto Import -> Java and make the below things: Select Insert imports on paste value to All Do tick mark on Add unambigious imports on the fly option and "Optimize imports on the fly* Go on the missing declaration with cursor and press

Assigning a keyboard shortcut for a specific Eclipse build configuration

跟風遠走 提交于 2019-11-27 00:15:28
In our Java project in Eclipse, we have several build configurations, as we have an engine that when run, builds installation jar for a specific projects according to the parameters it gets, so each build configuration run the same build with different parameters to build installation for a specific project. Currently, I have to go to the Run Configuration drop-down button in the toolbar to start the engine, and I need to select the build configuration from the list in order to run (or debug) the engine with the required parameters. I have configured Eclipse to run the last run execution if

How to modify the keyboard shortcuts in Eclipse IDE?

被刻印的时光 ゝ 提交于 2019-11-26 23:56:59
Title more or less says it all. Specifically, I've become increasingly annoyed that in order to run an ant script I have to use Alt + Shift + x , q . But I think If I had this power I would many things I would change the shortcuts for/add shortcuts for things that don't currently have them. Dave Ray Window > Preferences > General > Keys In particular, edit the "Run Ant Build" command. paul For Windows: Window > Preferences > General > Keys pjcarly For mac that would be Eclipse > Preferences > General > Keys Pressing Ctrl + Shift + L will open the current list of defined shortcuts, again

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

纵然是瞬间 提交于 2019-11-26 23:56:03
问题 This is a feature I have grown accustomed to in Eclipse ( Ctrl + Tab ). Is there an equivalent in Visual C++? 回答1: 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 回答2: In Visual Studio 2013 a default keyboard shortcut for this is Ctrl + K , Ctrl + O 回答3

delete word after or around cursor in VIM

安稳与你 提交于 2019-11-26 23:50:54
问题 I'm now switching to VIM from TextMate. I found ^+W in INSERT mode very useful. However, I'd like to delete not only the word before cursor, but the word after or around cursor as well. I did some googling, but the only thing I can find was ^+W to delete word BEFORE cursor. 回答1: What you should do is create an imap of a certain key to a series of commands, in this case the commands will drop you into normal mode, delete the current word and then put you back in insert: :imap <C-d> <C-[>diwi