Inside Visual Studio code editor(version 1.15.0) the cursor moves to end of line when taking a small pause while editing some text inside my file.Please help
Recently, I had the same kind of issue and the extension caused to the problem was EditorConfig. So what I simply did is open the file:
.editorconfig
which available in the same working directory, then I change:
insert_final_newline = true
to
insert_final_newline = false
Problem solved! :)
This problem is due to document formatting extension installed on VS CODE. Every time you add new lines to the file and take a pause, file is formatted which will take the cursor to end of file.
Here is the simple solution of your problem:
Go to File
, then toggle Auto Save
option. This will also prevent auto formatting of document. Formatting will be done on manually saving the document.
If your document is not being formatted on saving the document try this:
File > Preference > Settings
editor.format
in Search Settings
input fieldeditor.formatOnSave
to true
or add the following line to settings file "editor.formatOnSave": true
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With