Keyboard input blocks in VSCode - visual-studio-code

Since yesterday, I have a problem when want to edit code in VSCode. Apparently, after changing focus within VSCode, say switching to the menu bar or a to different view and then coming back to the editor view, the cursor changed from the caret to a filled rectangle, and normal keyboard input is blocked. I need to do something like pressing the Escape key which on the first, second, or third try finally puts me into overwrite mode from which I have to switch to insert mode. This is a very annoying situation. Does anyone have a remedy for this?

Apparently, I happened somehow to switch to the vim schema. Once I became aware of this, I simply switched back to the VS schema which I'm used to, and everything works as desired.

Related

VSCode editor opens a search panel when I try to write code

Something has happened to the settings (I think) so that whenever I try to type into the editor a search panel opens when the 5th character is typed, so I can't actually write any code. I have tried disabling various extensions, to no avail, and anyway, I haven't actually installed any new ones today. I have altered a few keyboard shortcuts, but don't know how to reset everything to default. I may have to uninstall the entire app and reinstall it, but would like to avoid this if possible
This is what happens when I get to typing the t of print

VS Code keyboard mapping is messed up. How to reset/change?

It seems that my VS Code keyboard mapping is incorrect. At first I thought it was a keybinding issue but when I try to change keybindings I notice that the names of the keys VS Code says I'm typing in for the keybind are different from what I'm actually typing. For instance, my backspace key does not delete left as it should. When I try to change the delete left keybind I see that it is already marked as "backspace". When I try to change the keybind, I see that VS Code thinks my Backspace key is actually Alt. I suspect that my keyboard mapping is incorrectly set (perhaps it's set to international or similar). I think the problem is specific to VS Code since I can type normally in terminal.
keybinding example screenshot
Does anyone know how to fix or reset the keyboard mapping in VS Code v1.67.0 for linux?
It looks like you're running into this issue documented here: https://github.com/Microsoft/vscode/issues/50756
The relevant setting to add in your user settings.json is:
keyboard.dispatch: "keyCode"

VS Code automatic indentation

I have a problem with automatic indentation in VS Code. If you pay attention to the gif below, you will see that the editor only moves a tab forward for the first time, but the second time it should automatically detect that a tab moves forward, but this is not the case. Many editors do not have this problem, but it has really become a problem for me. Also, for example, I do not want to press a shortcut key to solve this problem, I expect the editor to handle.
I found theanswer. Just disable trimAutoWhitespace in VS Code settings.

Selecting lines of code in Pycharm is working strangely

Recently, I wrote a block of code, and tried to copy and paste some functions around the code. But when highlighting the block of code I am trying to select, it exhibits strange behaviour. The first picture is the faulty case, and the second picture is the normal case.
First of all, I can click anywhere on my script even though I dont have spaces there.. if that makes sense (sorry I cant explain it any other way). Second, when I drag my mouse up, it drags up for only that section. Looking at the faulty screen shot, if I were to copy that block, it would only copy the parts in blue... Normally when I drag my mouse up, it automatically highlights the whole line as seen in the normal picture. Also, notice the giant white line on the faulty highlighting compared to the normal highlighting. I am wondering how I can go back to my old normal highlighting...
I think I was able to reproduce the problem by enabling column selection mode.
Try going to Edit-->Column Selection Mode. Uncheck it. If this was the problem, perhaps it was a finger flub which performed a shortkey operation.

Eclipse is printing the wrong characters in the text editor

I have a strange problem with Eclipse (Helios). After a few hours of working some of my keyboard keys start printing different characters in the text editor window.
For example:
SHIFT+2 normally prints " but actually prints #
# normally prints # but actually prints /
It feels like it changes the keyboard locale from UK to US, however I don't change any settings. I am mainly using Eclipse for Android development. No other programs are affected. Any ideas on how to fix, or even what could cause such a problem?
I've hit something similar before: Windows has this evil key-shortcut enabled by default, that changes between installed locales when you press left ALT + left Shift, which is needed in many Eclipse-shortcuts. Check your keyboard -settings (or something alike) under control panel, I don't have a Windows-machine to check where you could disable this with right now.
To switch off the switch between input languages behaviour (as described by #esaj) goto:
Control Panel->Region and Language->Keyboards and Languages->Change keyboards->Advanced Key Settings->Highlight Between input languages->Change Key Sequence->Change to Not Assigned.
Jeez, what a lot of clicks!
Before you change Keyboard setting (as suggested by #dontumer), hit "left shift+ left alt" until you get your layout back. It doesn't take more than two or three times. Once your layout is back then you can change keyboard settings if you are interested.