question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Cursor position is reset to the center of the line while typing

See original GitHub issue
  • VSCode Version: Code 1.14.2 (cb82febafda0c8c199b9201ad274e25d9a76874e, 2017-07-19T23:34:09.706Z)
  • OS Version: Windows_NT ia32 10.0.14393
  • Extensions:
Extension Author (truncated) Version
cake-vscode cak 0.8.0
vscode-markdownlint Dav 0.10.0
githistory don 0.2.2
vscode-html-css ecm 0.1.7
EditorConfig Edi 0.9.4
gc-excelviewer Gra 1.1.15
Ionide-fsharp Ion 2.28.0
Go luk 0.6.63
mssql ms- 1.1.0
csharp ms- 1.11.0
PowerShell ms- 1.4.1
debugger-for-chrome msj 3.1.6
vscode-docker Pet 0.0.16
java red 0.7.0
code-settings-sync Sha 2.8.2
code-spell-checker str 1.3.2
vscode-react-native vsm 0.4.0

Steps to Reproduce:

  1. Ensure that an editor config file does not exist.
  2. Open a document of any type (e.g. Readme.md)
  3. Type furiously. Just mash on the keyboard. Or better yet, type “The quick brown fox jumped over the lazy dog”
  4. Observe that the insertion point/cursor is not at the end of the line. You just typed gibberish. In the screencap below, the “he” from “the” has been moved to the end of the line.

image

Disabling the editorconfig extension resolves the issue.

Reproduces without extensions: No

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:1
  • Comments:12 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
darthsoupcommented, Jan 25, 2018

It seems to be fixed in my vscode with the new version

1reaction
alesmenzelcommented, Aug 12, 2017

Can confirm this happens on the newest Win 64bit build, i have only the editor config extension enabled and trim_trailing_whitespace = true in my config.

VS Code config:

{
    "files.autoSave": "afterDelay",
    "editor.renderWhitespace": "all"
}

It is really annoying, making this extension not usable.

PS: VS Code built in trimming does not remove trailing spaces on the line where the cursor is.

Read more comments on GitHub >

github_iconTop Results From Across the Web

My text cursor keeps going to the left side and I can't click on
Go into Settings > Devices > Mouse > Additional Mouse Options > Pointer Options tab, and UN-check the "Automatically move pointer" option box...
Read more >
how to set cursor position at the end of the value in flutter in ...
Simple and easy solution to move cursor at the end of position after updating the text in textfield just add below line.
Read more >
Cursor jumps while typing : How to fix - YouTube
How to Fix Cursor Pointer Jumping While Typing : If your mouse cursor jumps while you type, you can follow the steps demonstrated...
Read more >
A Dancing Caret; the unknown perils of adjusting cursor position
This is the problem, every time text is replaced programmatically, the caret position will reset to the beginning.
Read more >
Using the Direct Cursor - LibreOffice Help
On the Tools bar, click the Direct Cursor icon Icon . Alternatively, enable Direct Cursor by going to Edit - Direct Cursor Mode....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found