Reputation: 3306
Somehow I ended up with a block/square cursor in VS Code. What is the setting name, and how do I go back to the pipe cursor?
Note that it's not "overtype" mode: I can type before other characters and it doesn't overwrite them.
I'm on macOS Sierra
Upvotes: 33
Views: 70303
Reputation: 21
open visual code editor ->Go To Setting->Text Editor->Cursor and change your cursor in Visual Code Studio
Upvotes: 2
Reputation: 47
In my case, I couldn't use the arrow keys to move the cursor past the end of line (to the next line) or before the beginning of line to the (previous line). Uninstalling VIM and restarting VS Code fixed my problem
Upvotes: 0
Reputation: 61
If you have the Vim extension installed:
The cursor styles can be set with the following lines in settings.json
:
"vim.cursorStylePerMode.insert": "line",
"vim.cursorStylePerMode.normal": "block",
"vim.cursorStylePerMode.replace": "block",
"vim.cursorStylePerMode.visual": "block",
Upvotes: 2
Reputation: 69
Yes, in my case it was caused due to the Vim extension in VS Code. If it is installed then try pressing "i" or uninstall the extension.
Upvotes: 4
Reputation: 1771
I believe the reason is that you installed vim extension in vscode by mistake as it puts you in that mode by default until you press (i) to edit text. uninstall vim extension and things should go back to normal. or refer to this vim cheatsheet for more information about using vim as a text editor.
Upvotes: 33
Reputation: 517
Press Insert it should return back to normal. You can also press ctrl+shift+I. In mac os it is control. Head back to code this problem can be cumbersome.
Upvotes: 17
Reputation: 182941
// Controls the cursor style, accepted values are 'block', 'line' and 'underline'
"editor.cursorStyle": "line",
from VSCode settings.json defaults
Upvotes: 41