Vscode-jupyter: jupyter automatic indentation does not work after vscode update to 1.45.1

Created on 19 Jun 2020  路  9Comments  路  Source: microsoft/vscode-jupyter

Jupyter automatic indentation does not work after vscode update to 1.45.1.

version: 1.45.1 (user setup)
commit: 5763d909d5f12fe19f215cbfdd29a91c0fa9208a
date: 2020-05-14T08:27:35.169Z
Electron: 7.2.4
Chrome: 78.0.3904.130
Node.js: 12.8.1
V8: 7.8.279.23-electron.0
OS: Windows_NT x64 10.0.18363

bug

Most helpful comment

Same issue. The indentation is also not working in the interactive python window as well.

Attaching a gif. I manually tab after it fails to auto-indent for def fun(a,b): to show that the indentation error is following the most recent one when it fails for if a==1:.
Peek 2020-06-22 13-36

All 9 comments

Exactly,It failed after automatic update

Compared to the previous screenshot, I think it may also have been mistakenly indented

image
image

It still does not work in 1.46.1 in Ubuntu 2020.04.

@tim4431 Hi, which theme do you use,锛焀hy your jupyter code highlights are so beautiful锛燄煒乧an you tell me?

@CatNofishing One Dark Pro,you can easily find it in the extension market

the same problem for me
also, the code doesn't stick to the left of the cell.
Screenshot 2020-06-20 at 9 24 41 PM

Same issue. The indentation is also not working in the interactive python window as well.

Attaching a gif. I manually tab after it fails to auto-indent for def fun(a,b): to show that the indentation error is following the most recent one when it fails for if a==1:.
Peek 2020-06-22 13-36

@DonJayamanne

Confirmed not working in 1.46.

Version: 1.46.0
Commit: a5d1cc28bb5da32ec67e86cc50f84c67cc690321
Date: 2020-06-10T08:59:04.923Z
Electron: 7.3.1
Chrome: 78.0.3904.130
Node.js: 12.8.1
V8: 7.8.279.23-electron.0
OS: Linux x64 5.3.0-59-generic

Was this page helpful?
0 / 5 - 0 ratings