vscode-code-runner: run code hotkey (ctrl + alt + n) doesn't work
Hi,
I am running VSCode 1.21.1 on Windows 10. Pretty vanilla installation without much customizations. When pressing ctrl+alt+N, nothing happened in VSCode, not even an error message. Right mouse click to run code and the play button on top right corner to run code work fine.
I tried 4 main hotkeys of Run Code (Ctrl + Alt + J, N, K, M). Only the Ctrl+Alt+M
responds but it’s due to that hotkey is assigned to send Mel code to Maya.
Anyone experiencing this?
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Reactions: 3
- Comments: 35 (4 by maintainers)
Steps to fix:
Search for ‘Advanced keyboard settings’ in Windows 10 settings. Ensure the drop-down menu option under ‘Override for default input method’ is set to ‘Use language list (Recommended)’. Go to ‘Language settings’, Make sure under ‘Preferred languages’, first option is set to ‘English (United States)’. Click on it. Click on ‘Options’. Under ‘Keyboards’, remove whatever keyboard is there, and add ‘US’ keyboard instead. It should be fixed now.
I believe the offending keyboard is ‘English (India)’, because the ‘ṇ’ character (and you can produce other such ‘weird’ characters with Ctrl+Alt+<letter>) is a Devanagari transliteration character used to write phonetically correct Devanagari words in Romanized form.
Just turn on the NumLock -_-
This was working properly for me until recent VSCode update. Now character “ṇ” gets printed even if ctrl+alt+N is mapped to Run Code in key mappings.
This is definitely a issue that needs fixing.
Not working in version 1.31.1. Was working before that.
As mentioned above a different key binding works but default behavior should not change abruptly.
The fix by @nishnat-rishi works. Thanks a lot. Just to add something to his comment, he refers to the ‘Advance keyboard settings’ of the OS. I spent some considerable time trying to search advance keyboard settings in VSCode, lol.
The key mapping doesn’t work after VSCode updated to v1.31.1. The character ṇ gets printed instead. Please fix this issue.
i got the same problem, by pressing CTRL+ALT+N it showed up a “ṇ” character. but i tried the same old formula. i restarted my system. and guess what ? it worked.
Wow truning the NumLock worked that’s GREAT ,thanks … 😃
How about setting other keybinding instead of
Ctrl+Alt+n
?Could you try updating the key bindings? https://code.visualstudio.com/docs/getstarted/keybindings#_keyboard-shortcuts-editor