Everytime I try to copy from VSCode (on mac with command + c) my cursor goes into --NORMAL-- mode and my cursor becomes a block cursor, how to fix? - visual-studio-code

Every time I try to copy something in VSCode on my mac with the commands command + c the cursor changes from a line to a block and automatically goes into NORMAL mode as displayed at the bottom of the window like this image linked here. Whenever I press the button s on my mac, it returns to INSERT Mode, and the cursor is a line again. I have been trying to resolve this issue for some time, but I am unsure where I could fix this in my settings.

You are in Vim keymaps.
Check extensions, you should be able to find Vim installed and enabled there. Disable or uninstall this extension if you do not need it.

Related

Vscode my cursor turn into overtype everytime when i did ctrl + c

i got error when im did ctrl+c and it become like this
and its so annoying that i need to click Ins button to get it back that look like normal. something like this.
try to search at my keyboard shortcuts and user keybindings and i didnt find anything wrong. it showing up when i learning of new neovim IDE and when i set the :set paste and when i got back to vscode it change my shortcut already.
might be wrongly change my keyboard shortcuts. is there any way to change it back?
i tried to uninstall keyboard driver and restart my laptop. and i still got the same result as before. when i did ctrl + c it will turn to be overtype mode

How to copy the snapshot from CodeSnap VSCode Extension into clipboard without saving it?

Using the latest version of CodeSnap works properly on VSCode on Windows. It attempts to save the snapshot of a desired piece of code when I click on its symbol (1).
However, I'm not able to copy it to the clipboard directly as the docs suggest through (2). Instead, it copies the code.
If you'd like to copy to clipboard instead of saving, click the image and press the copy keyboard shortcut (defaults are Ctrl+C on Windows and Linux, Cmd+C on OS X)
I also tried to follow the recommendation that follows without success:
... or bind codesnap.shutterAction to copy in your settings
But I wasn't able to configure it properly, because I couldn't find such setting. Is there any way to copy the snapshot without saving it before?
The keyboard shortcut to settings on VSCode on Windows is CTRL + < only.
I accidentally discovered this when I was intending on commenting HTML with Shift + < but then instead, by mistake pressed CTRL and the settings panel opened. This happened often😅

VS Code Ctrl+C has a wrong behaviour

In Visual Studio Code, when i try to use Ctrl+C to copy something, it changes the insert mode instead. There is a blue bar at the bottom of the screen, with all the informations about the file (python interpreter, number of line and column of the cursor, ...) and -INSERT- . When I press Ctrl+C, the -INSERT- switches to -NORMAL- and I can't copy what I highlighted.
I too had this issue. Resolved was by disabling the VIM extension or you can uninstall it too.

How to expand VSCode's Interactive Terminal's text font

I've been working on a bunch of different projects in VSCode and just to clear up some space on my desktop I decided to quit all VSCode applications. Upon reopening it, the Interactive Terminal's text too small to read. I know you can just launch terminal and execute the same command but out of convince's sake I want to be able to increase the size of it again. Example of my issue
You can change the terminal display settings with this configuration in your settings.json.
I saw your photo, and it looks like there is some minor problem. Just reload your window - Command + R on macOS, or select Developer: Reload Window after opening the command palette. That should work.

How to run the select code in VScode?

I want to run the select code of python in VScode. Till now, I have to copy the code and paste it in the terminal below to run. The system is mac OS.
So is there any way to run the code directly after I selected the code? For example, like the shortcuts.
Thanks.
There is no default keybindings for command "Run Selected Text in Active Terminal", but you can create one.
Press Ctrl+K, Ctrl+S to open File → Preferences → Keyboard Shortcuts.
Search for workbench.action.terminal.runSelectedText in keybindings.
Press the icon on the left to open a windnow with this message "Press desired key combination..." and make your choice. (I've pressed Ctrl+Alt+R - as this combination was not used yet.)
Press Enter to store your keybinding.
Tested on VSCode 1.30.2 on Windows 10 Pro.
#yanachen, this is now possible in VS Code. All you need to do is:
1. Ensure python is running in the VS Code terminal window
2. Select the text you wish to execute in python
3. Invoke the command 'workbench.action.terminal.runSelectedText' as defined in the following link:
https://code.visualstudio.com/docs/editor/integrated-terminal#_key-bindings
Now it's supported by default shortcut "shift" + "enter".
select the proper code snippet
press "shift" + "enter"
Here is the setting for running selection in "interactive window."
In my VS Code (version 1.56.2), I do the following things: go to Settings, search for interactive window, in the resulting left panel choose Jupyter, and finally check the box next to Jupyter: Send selection to interactive window. That's it. One more step for some users (including me) is to modify the keybinding for running selection to your preference. For example, got to keyboard shortcuts, type run selection, you should see a list of keybindings and you may need to redefine them if conflicts exist.
Some language specific extensions have already an existing keybinding.
On Windows, for the PowerShell extension it is currently F8 to run the selected text.
Install the vscode extension Node.js Exec. then select the block of code you want to run and press f8. worked for me.