Giter VIP home page Giter VIP logo

Comments (4)

alefragnani avatar alefragnani commented on May 11, 2024 3

Hm... I knew this wasn't strange to me...

This error was introduced by an update in VS Code (don't remember exactly when). I thought I had fixed but instead I just turned off 😢 . That update introduced a new setting editor.trimAutoWhitespace, that you must set to false in order to temporarily fix this.

Hope this helps.

from vscode-bookmarks.

jing2si avatar jing2si commented on May 11, 2024

as follow is my test code.
the bookmark is at 'function'.
when i add new line use enter in 'o' object`s bracket,the bookmark can not stick.

var o = {}
function test() {}

I find if before newline has indent,then use enter add some newline will change the bookmark.

from vscode-bookmarks.

alefragnani avatar alefragnani commented on May 11, 2024

Hi @jing2si ,

Sorry, but I couldn't reproduce your problem 😞 . Take a look at the gif below. I used with and without indent and in both cases, the bookmark is correctly moved with the code.

35

I also tried with an empty line between them, no problem.

Are these scenarios covering your usage? Do you have any more info to share?

from vscode-bookmarks.

jing2si avatar jing2si commented on May 11, 2024

need more empty line.
before the empty line must have indent.
1

from vscode-bookmarks.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.