How can disable, remove or force a prompt when clicking the application Close button in the title bar of Visual Studio Code? - visual-studio-code

I tried using Quit Control for VSCode, but that doesn't do anything for an actual mouse click on the close X:
Is there a way to configure the behavior for the close button?

Related

Visual Studio Code and notificaitons with taskbar

Visual Studio Code keeps getting a notification in my taksbar. I cannot find out what the notification is, so my taskbar is always elevated. I need to type in the area of my taksbar. This is so annoying. I have to resize my screen or close VSC and reopen it so that I can type into the termintal window. Any ideas what I can do?

Can I configure VS Code to disable Breakpoint by middle click?

I am switching from PyCharm to VS Codium. I want to be able to disable breakpoints by middle mouse click, like in pycharm.
Currently, I can disable a breakpoint by right click at breakpoint and select Disable Breakpoint:
Another way is to disable it in list in Breakpoints view.
But I want to be able to quickly enable/disable it by just clicking with mouse wheel (middle button). Is it possible to configure VS Code this way? Currently, when I middle click on breakpoint, this is ignored, and instead a text from selection clipboard is pasted (it is the default behavior in linux). Visual Studio Code version is 1.66.1.
There is no way at the moment to customize mouse click events. There are a few hardcoded options you can change in the settings, but it is extremely limited like pressing ctrl and the mouse wheel for zoom. As far as I am aware, disabling breakpoints is not among those options.
Check out: https://github.com/microsoft/vscode/issues/3130
I currently use the following workaround.
Remap the middle click to some button.
For wayland several utilities can be used for that. Let's take kbct.
Add such config (edit for your needs)
/etc/kbct/config.yml:
- keyboards: [ "Logitech MX Master" ]
keymap:
btn_middle: f15
Then start kbct.service.
Create the ruler script
Make the file choose_press.sh:
#!/bin/bash
class=$(xdotool getactivewindow getwindowclassname)
if [ "x$class" == "xVSCodium" ]; then
ydotool click 0xC1 # right click
sleep 0.2
ydotool key 107:1 107:0 28:1 28:0 # End, Enter
else
ydotool click 0xC2 # middle click
fi
Do not forget to add executable permissions.
Bind shortcut to the script
To assign a command to shortcut in KDE, go to System Settings -> Shortcuts -> Custom Shortcuts, right click, choose New -> Global Shortcut -> Command/URL. Go to Action tab and fill in the command. In this case it will be the path to choose_press.sh. Note: do not use ~ there.
And in Trigger tab assign the shortcut. In this case we use f15 (use some way to simulate it, if it is not presented on the keyboard).
Start VS Codium
Use vs codium in X11 mode. This is because I currently do not know how to get active window class in wayland.
Result
Now if you middle click in vscodium window, it will receive the sequence of input that leads to enabling/disabling breakpoint. In any other window, the middle click will behave as normal.
There is debug.enableOrDisableBreakpoint in codium, but toggling that with shortcut only works when the cursor is on the line with breakpoint. I did not found a way to move cursor to the line where you pressed (method to get the mouse over line?). So I made that complex thing with ydotool choose_press.sh.
I also tried to start stop kbct by window activation, but that is unfortunately broken in kde wayland currently.

Can you activate a button in a hover popup using the keyboard in VS Code?

I can display a hover popup with ⌘K ⌘I (on Mac). Is there a way to trigger a button on the popup (such as Quick Fix... in the image below) without using the mouse?
I don't know about other actions, but specifically for Quick Fix... there is a keyboard shortchut.
On a Mac it is ⌘.

How to handle chrome windows that pop up

So in my scenario i am click on some button:
val button = driver.findElement(By.xpath("...."))
button.click
So my problem is that after this click google chrome pop up little windows that i need to confirm and since this not part of the HTML i cannot reach this window, also i am working on MAC so there is no AutoIt that can catch this window.
Any suggestions how to click on this window button ?

Built-in App Launch keyboard shortcut in LinuxMint

Using LinuxMint 12, if you open the "desktops overview" by clicking on the top left corner of the desktop, a little search bar opens on the top-right corner of the desktop. This search does quick app launching without requiring additional plugins, but I can't get an answer on how to get to this launcher without using the mouse.
Does anyone know how I can invoke this launcher with a keyboard shortcut?
Alt+F1 opens the Open Windows selection screen. If you start typing then, the search bar will automatically take focus.