Coder Social home page Coder Social logo

vscode-emacs-indent's People

Contributors

dependabot[bot] avatar sakapoko avatar

Stargazers

 avatar  avatar

Watchers

 avatar

Forkers

kshartman

vscode-emacs-indent's Issues

tab on a blank line preceded by another blank line doesn't indent to the right position

If I have two blank lines in a row and hit tab on the second blank line, the cursor is taken back to column 1. This isn't what I expect: I want to jump to the appropriate indentation for the document, ignoring any blank lines above it. The built-in VSCode behavior of hitting enter on a blank line does jump me to the appropriate indent.

For example, take a JSON document:

1 {
2     "hello": "world",
3
4
5     "goodbye": "for now"
6 }

On row 3, hitting tab correctly indents inline with the other JSON keys.

On row 4, hitting tab takes the cursor back to column 1. I would expect the behavior to be the same between rows 3 and 4. (Note that row 3 has to be completely blank for this to be the case: if row 3 has indentation in it, row 4 will indent to that level.)

This isn't limited to JSON documents.

Doesn't work on C or Python source

The extension works fine with JSON, but I'm unable to get it working on source file like Python or C. The tab key is just a dead key.

tested on

  • VScode 1.61.2
  • Electron 13.5.1

Thanks

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.