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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.