I'm fairly new to coding, I kind of know how to use select case and all that, but I want to know if there is a way to disable other keys when I press down on one key, this is for a game I am making for my school project.
E.g.: when I press the J key it disables the K key.
I just want to know if there is any command that can do something like this...
Or if there any line of code that can do anything like this with like a timer or checkbox.
There is a property e.keysuppress but I'm not sure if that really works for my situation.
Related
sometimes I want to select everything including underscores and sometimes I don't. I want to be able to manipulate that behavior using a hotkey or similar
https://intellij-support.jetbrains.com/hc/en-us/community/posts/207073835-Where-to-set-word-boundaries-for-Ctrl-Arrow
there exists that setting to globally enable it or disable it but that is not what helps me
sometimes I want it to stop on _ and sometimes I don't.
just an example:
I have this code line:
$this->wp_user->remove_role(MOTR_USER_ROLE_ORGANIZATION_TEMP);
and I want to add:
$this->wp_user->add_role(MOTR_USER_ROLE_ORGANIZATION_ACTIVE);
now if stop on underscore is enabled I have to click soo many times to get to _TEMP at the end. But if it is disabled I have to click a lot as well to delete remove_ from the function call. I want to manipulate that behaviour using a plugin or similar. Does something like that exist?
https://plugins.jetbrains.com/plugin/194-toggle-camel-humps seems to work you need to change the binding in the keymap though as default is assigned to ctrl+shift+a which is already in use in my case
Looks like I pressed some key combination or something.
I cannot capture code as usual. Idea captures not the whole method but text according to the level of the cursor.
Does anyone know how to turn on/off this feature?
I use ultimate version 2017.1
You've probably enabled Column selection mode, which on Windows has as default shortcut: ALT + SHIFT + INSERT.
You can also temporarily enable this selection mode, by holding down the ALT key, then clicking and dragging with the mouse over the block of text you want to select, like this:
Take a look at the documentation because there are a few other useful features you can take advantage of.
I have the following keymap.cson file to config my Atom editor:
'body':
'ctrl-shift-cmd-left': 'window:focus-pane-on-left'
Only when I run this command, the current text is selected. Which without the alt key held, would make sense as a highlighting command.
However, is I bind a key command which I think most likely doesn't have a competing action, say alt-cmd-;, it seems to be registered into the list of key commands in Settings/Keybindings, yet again no window focus is happening.
Edit:
I now realize that pane and not window may be the relevant term for what I want. Still, searching the Key Bindings for pane focus switching didn't yield anything obvious. Surely, there must be a simple way to select through files in the Project area while editing.
Although this answer doesn't match the title of the question, based on your edit I think that tree-view:toggle-focus is what you're looking for.
Please try using Ctrl + 0.
And, if you use Nuclide (related to React), please try disabling it to check the difference.
I would like to have a script to launch one of my application automatically, but due to the setting of the program, the application has to be launched while holding down the Ctrl key (for the entire time until the application fully loaded up) for it to work properly.
Now, I know that in Batch we can do something like this
START "" "C:\Program Files\Microsoft Office\Winword.exe" "D:\Docs\demo.txt"
But, how could I implement a holding Ctrl key?
If you know any other script types that could do this, such as VB or PowerShell, I am willing to try, too.
Thanks
Arguments are picked up with:
My.Application.CommandLineArgs
Regarding the ctrl key I would strongly recommend you to alter the way your software works because it is rather stupid.
If you absolutely must have the ctrl key pressed down I would suggest looking into things like this: http://tksinghal.blogspot.se/2011/04/how-to-press-and-hold-keyboard-key.html
I found a lot of tutorials and forum questions around remapping key bindings in Textmate and for the most part I know what needs to be done as far as copy the KeyBindings file and then make the changes needed. More on what I am talking about here http://blog.macromates.com/2005/key-bindings-for-switchers/
I am interested in re-mapping the esc key for nextComplete to control + spacebar. The problem is I am having a hard time finding what the code is for the spacebar or if this is even supported.
I mainly do actionscript development in eclipes and code hinting dialogue is triggered by this key combo and I would like to have the same in Textmate. Hitting the esc key kind of sux. I thought I would get used to it but the fact is that it just kills the flow of typing the rest of your code.
I could use some help figuring out what he code is for the space bar. I know control key is the ^ symbol. I tested this by changing the keybinding to ^s and it remapped just fine.
I think this one can be done with the OS X gui:
System Preferences, Keyboard, Click Keyboard Shortcuts Tab
Click the little Plus, and choose Application: Textmate.app, Menu Title: Next Completion, Type Command Space (or Control Space) and click Add and that should work. You might want to remove conflicting shortcuts - possibly spotlight?
For future reference, I used Key Codes to find the key for space is: \UF20