Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Automatic indentation inside brackets #701

@seekiu

Description

@seekiu

Environment data

VS Code version: 1.19.3
Python Extension version: 2018.1.0
Python Version: 3.6.3
OS and version: Windows 10 1709

Actual behavior

When adding new line within brackets, the indentation does not conform to PEP8 format. E.g.

some_list = [item1,<press enter here>
<cursor gets to here>

Expected behavior

some_list = [item1,<press enter here>
             <cursor expected to be here>

I'm not sure if this is a python extension related issue or maybe VS code issue. I'm also using Vim, which has an extension specifically for this: https://github.com/Vimjas/vim-python-pep8-indent. It would be nice if this feature can be added to the extension. Thanks.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions