Highlighting code with mouse goes wild in Visual Studio Code - visual-studio-code

When I try to highlight some code in Visual Studio code it goes crazy and moves very fast. E.g. I want to select around one page and end up selecting 10 "pages" worth of code.
How can I make it act normaly when I want to highlight some code?

I used to have the same issue. A weird behavior with mouse selection. This was my solution path.
Check for hardware failures.
Unplug the keyboard dongle. If suddenly the mouse selection goes well. Do this steps.
Check for keys stucked βœ…
Uninstall the keyboard driver from Device Manager βœ…
Change the dongle USB port βœ…
And after all this steps, my cursor comes back to normality... for a while 😐.
Made the keyboard check with keyboard tester
Detect the key with the failure (Fortunately Insert in my case).
Download the app keytweak and disable that key.
This is a workaround if you don´t want to buy a new keyboard. I hope your failing key isn't any vocal 😬. If so... buy a new one.

Related

Mouse and Keyboard not working in XWindows

I have an LFS v10 environment that is SystemV based. I'm in the process of improving it by adding XWindows to it. When I run startx, XWindows starts up, and I see the a few programs/Windows that display in the twm Window manager.
My problem is that the cursor does not move on the screen. I can see it in the dead center of the screen but it doesn't move as I move the mouse.
I also have a with the keyboard. It does appear that one of the programs/Windows are active by default at the time that XWindows starts, but an attempt to type some characters puts nothing in the text editor program.
The keyboard is a Logitech MK710 and the mouse is a Logitech M317.
Before I attempt to start XWindows, the keyboard works without problem while I'm working at the command line.
I've been activating different options when building the Linux kernel that some people are recommending but none are helping.
I got this working. For anyone interested. the solution was installing all 4 of the below drivers:
libevdev-1.9.1
Xorg Evdev Driver-2.10.6
libinput-1.16.1
Xorg Libinput-0.30.0
I then ran the X -configure command, then copied the created file to /etc/X11/xorg.conf, then ran startx and the mouse and keyboard began working.

External/USB controller integrated with Eclipse

I own an APC MINI USB/MIDI button pad and have been trying to get windows to more or less recognize it as a operating-system-wide input device. My primary use case is to trigger macros or shortcuts in Eclipse.
For example, instead of the current keybinding of ALT+] to clone a window I could press [btn_1] on the external controller to trigger the action. Another example is I could move the slider up and down changing the zoom on my text.
Ideally I'll be able to fire off any macro or shortcut just by pressing a button on the USB pad. If I could get it working at the OS level, I could see having a row of buttons start or focus frequently used applications. For example be able to open FireFox or press a button to navigate a tab to StackOverflow.com.
I supposed I COULD slap together a quick jar with a Midi library, listen for input from the device and map the "notes" (button presses) to a key combination/shortcut but I feel like there has got to be a way to have windows treat the pad as an input device just like a mouse or keyboard. Been all over the internet looking for solutions but most use cases deal with software engineered to handle midi input. Not afraid to write .bat files to cooperate with windows but still need some way to link the buttons on my board to said .bat files.
Any ideas or suggestions would be greatly appreciated!

Visual Studio Code window is not appearing

I've encountered a very strange bug with Microsoft Visual Studio Code. I've been using VSCode for a few months now and never had this issue. When I open VSCode, the window just doesn't appear. The app is definitely open, because when I hover over the icon on my taskbar I can see what is being displayed in the app:
Unfortunately, when I click on it, the window does not appear.... I've uninstalled and reinstalled, deleted cache, tried older versions and nothing has worked. Has anyone else encountered this and fixed it? Any advice?
hover over VSCode icon in taskbar
right click on it
click on "New Window"
That should do it.
I had something similar. It appears that the window is just off-screen. I've used my DisplayFusion display manager - to move windows to center/top where I could handle it myself. I expect it'll also work using <Win> + <←> (maximize window to left side of screen).
In my case, the issue went away when uninstalling the GlassIt-VSC extension. I tried modifying the opacity of the window and then it disappeared. I highly suggest you try uninstalling this extension.
In my case I had connected HDMI cable but due to power off my monitor was off, but when I disconnected hdmi cable; VS code visible on my screen.
Got the answer since no one was helping.
Go to view.
Click solution explorer.
It should show the name of your project.
Click the small arrow at the beginning of the heading of your project.
Click source files.
Click yourproject.cpp.
Thank you.
I encountered a similar issue with a plugin called GlassIt while I was playing with a property called "glassit.alpha" somehow it went to 1 (possibly I changed it accidentally) and nothing showed up. (here's an image where you can slightly see that I set alpha to 20)
what i did was to just edit the %appdata%\..\Roaming\Code\User\Settings.json and set "glassit.alpha": 1, to 255
UPDATE I just realised there was already an answer I didn't see while I was writing this post
I had this issue during a remote desktop session and could bring the VSC window back via hitting F11 (via the onscreen keyboard in my case, since the F11 key on my keyboard was being captured by the host system).
In my case, I have a dual monitor setup, and the laptop was in clamshell mode. However, the laptop's built-in monitor was recognized as a third monitor, and VsCode was going there.

Gnome shell two monitors full screen apps

I'm working on the Ubuntu 16.04 whit Gnome Shell version 3.18.5 and I'm using two monitors. Issue which I have regarding aplications opend in the full screen mode.
For expample if I open on the monitor number 1 my browser and on the monitor number 2 terminal in full screen mode plus some additional application such as a code editor(not full screen). Now when I'm focus on the code editor which is on the top of the terminal it's ok but when I click on my broser window(monitor 1) then the code editor gose behind the terminal automatically.
I've prepared some video to better show this problem:
In this video you can see correct behaviour when I'm using one monitor.
Here is video showing incorrect behaviour. Don't care about the elements which are above the terminal on the left screen. Terminal was set to full screen.
Dose anybody know how to change this behaviour? I was looking for solution in google but without success. Thank you.
That's the expected behavior when things are in focus/out of focus. Try resizing your windows so they don't block one another; thus, nothing will be "behind" anything else when you shift focus by clicking here or there.

Arrow key is not working for changing button selection in netbeans

When I try to delete a netbeans project, I get this dialog
I try to use left arrow key to switch focus from the No to the Yes button but it isn't switching. (This will work perfectly for any other windows application on my system)
Is this a normal behaviour for netbeans IDE or is something wrong with mine?
Just tried it with the latest development build, and I can confirm that the arrow keys do not move the focus.
My guess is that it is a Java/Swing/AWT thing, not necessarily a Netbeans thing. Unfortunately I do not have another Java application I can get to at this very moment, so the previous sentence is conjecture on my part.
On the other hand, TAB/SHIFT-TAB cycles through each of the UI items. A little bit farther around the mountain, but not quite as far as reaching for the mouse.