Cant set Ctrl + Shift + E as chrome extension command - google-chrome-extension

I'm trying to register Ctrl + Shift + E as command for my chrome extension, it should work according to my understanding from the rules listed here but it isn't working.
I noticed even the command in the example Ctrl + Shift + Y doesn't work.
They don't perform the necessary action.
I understand these commands are just suggestions but I'm not sure why these combinations aren't working.
When logging with chrome.commands.getAll() the shortcut is replaced by empty string.
Here is my manifest V3 file:
...
"commands": {
"commandName": {
"suggested_key": {
"default": "Ctrl+Shift+E",
"mac": "Command+Shift+E"
},
"description": "description"
}
}
...
Other combinations work for example Ctrl + U or Ctrl + Shift + U

Related

Tkinter: How to bind a Shift

I'm making a menubar in Tkinter with an accelerator:
menubar = tk.Menu(window)
file_menu = tk.Menu(menubar)
menubar.add_cascade(label='File', menu=file_menu)
window.config(menu=menubar)
file_menu.add_command(label='Open resource pack', command=openPack, accelerator='Cmd+o' if IS_MAC else 'Ctrl+o')
window.bind_all('<M1-o>' if IS_MAC else '<Control-o>', openPack)
file_menu.add_command(label='Copy original pack', command=copyOriginalPack, accelerator='Shift+Cmd+c' if IS_MAC else 'Shift+Ctrl+c')
window.bind_all('<M1-C>' if IS_MAC else '<Control-C>', copyOriginalPack)
But for the Copy original pack option the key combination is Shift + Command + C. The accelerator only shows the key combination in the menubar but doesn't actually run the command, so I have to manually bind to the window.
If I remember correctly, to bind Shift + Command + C I just need to say Control+C and make the C uppercase because of Shift.
But I can't bind Shift. It works if I click the menu option, but the key combo doesn't. It works for the other option, which doesn't have Shift
I fixed it by writing <M1-Shift-c> (note the lowercase c)

Sublime Text 3 / Emmet – Select both opening & closing tag (via Shortcut)

Just a quick question in order to optimize my workflow / productivity with Sublime Text 3 & Emmet...
So far I am able to (on Mac)
select the opening and closing tag via CMD + Shift + K
select the nested HTML / text of a wrapping attribute via CMD + Shift + A
But what I haven't found out yet is a way to select the opening and closing tag completely (with all possible values) in order to delete the surrounding tags.
To illustrate...
<span style="color: #660066;"><strong>Lorem ipsum dolor sit amed</strong></span>
Running CMD + Shift + K renders this selection:
...which doesn't allow me to instantly delete the code.
Any ideas / hints / workarounds you can think of? I researched both the web and the Sublime Text docs but to no avail...
Thanks & regards!
Highlight the tag you want to remove the opening and closing tags for and try CTRL + SHIFT + ;
That should delete the selected tag and it's closing partner.
The emmet documentation has this as the remove tag shortcut, but states the shortcut is CTRL + SHIFT + K, when infact (on my setup at least), it's CTRL + SHIFT + ; in Sublime Text 3.
If this doesn't work, you should be able to find what the default key binding is by checking your default key bindings file under Preferences > Package Settings > Emmet > Key Bindings - Default. Run a search in this file for "remove_tag" and see what binding is attached to it.
If for some reason it doesn't exist or you'd like to change the binding, you can do so by editing your user key bindings file under Preferences > Package Settings > Emmet > Key Bindings - User.
Simply add:
[
{
"keys": [
"shift+ctrl+;"
],
"args": {
"action": "remove_tag"
},
"command": "run_emmet_action",
"context": [
{
"key": "emmet_action_enabled.remove_tag"
}
]
}
]

How to disable Shift Ctrl?

I would like to disable Shift Ctrl without disabling other shorcuts like Shift Ctrl A, or Ctrl A, or Shift A.
I have tried multiple combinaison of ^+:: return with and without :
- Up : ^+ Up:: return
- ~ : ~^+ Up:: return
- & : ~^ & ~+ Up:: return
Nothing work. Even when I start my script as admin it doesn work.
I want to rename Shift Ctrl because I have two keyboard languages and pressing Shift Ctrl change it. I already have the shorcut Windows Space so I don't need Shift Ctrl.
I have tried with ahk but I am open to any other way to solve this.
"^" is the modifier symbol for the Control key and "+" for the Shift key.
Modifier symbols are used only in key-combinations for modifying other keys.
Try also
+Ctrl Up:: return
or
Shift & Ctrl Up:: return
EDIT:
You can change or remove the combination that changes the keyboard language on Control panel --> Language, as shown in the comments below.

Ctrl + Alt + V: Disable auto-generation of the keyword "final"

It was not like this in version 1.5, but now that I updated my Android Studio to 2.1.1 whenever I generate a local variable with the Ctrl + Alt + V shortcut, the variable is generated with the keyword "final".
For example, let's say I have the following statements:
Object o = new Object();
o.toString();
Let's highlight the second line and press Ctrl + Alt + V and voila:
final String s = o.toString();
// ^ I'm talking about this.
How do I disable the auto-generaion of the keyword "final"?
This auto-insertion of final is highly annoying as I use this shortcut like every other minute and I have to delete the keyword because most of the time I don't need the variable to be final and would not like to keep my code unnecessarily wordy.
I don't know why you want to turn it off since it is good practice.
Here is how you can do that:

How to auto-format whitespaces in comments using android studio?

My problem is, when I comment out a line using Ctrl + /,
// comment
and then auto-format the code,
// comment
the comment will still contain whitespaces after the "//" that I wouldn't want to keep.
I've already checked the Settings>Editor>Java>Wrapping and Braces options, and also the other tabs.
Thanks in advance.
I have just solved this problem.
Code Style -> Java -> Code Generation
There is a "Comment Code" and deselect the "Line comment at first column"
Code Style -> Java -> Wrapping and Braces
There is a "Keep when reformatting" and deselect the "Comment at first column"
As follows
Code Generation
Wrapping and Braces
I think your problem can be solved.
To apply identation to a document press Ctrl + Alt + L (Option + Command + L in Mac)
But the only way, once you have few comments with that "problem", I guess is to replace ('// ' by '//') (Shortcut to replace: Ctrl + Shift + R)
Hope it hepls.

Resources