Skip to content

Support Tabs vs Spaces in notebook editors - #204783

Merged
Michael Lively (Yoyokrazy) merged 3 commits into
mainfrom
milively/tabs-vs-spaces
Feb 12, 2024
Merged

Michael Lively (Yoyokrazy) merged 3 commits into
mainfrom
milively/tabs-vs-spaces

Conversation

@Yoyokrazy

@Yoyokrazy Michael Lively (Yoyokrazy) commented Feb 8, 2024 •

Copy link
Copy Markdown
Collaborator

Fixes: #108675

Currently you can control the indentation modes for notebook editors via the setting:
"notebook.editorOptionsCustomizations": {}

For example:

"notebook.editorOptionsCustomizations": {
	"editor.detectIndentation": false,
	"editor.indentSize": "tabSize",
	"editor.tabSize": 16,
	"editor.insertSpaces": true,
},

@Yoyokrazy

Michael Lively (Yoyokrazy) commented Feb 8, 2024 •

Copy link
Copy Markdown
Collaborator Author

Todo: hook up command for statusbar entry to change indentation types (coming in a separate PR)

@Yoyokrazy
Michael Lively (Yoyokrazy) marked this pull request as ready for review February 8, 2024 23:01
@vscodenpa VS Code Bot (vscodenpa) added this to the February 2024 milestone Feb 8, 2024

@rebornix Peng Lyu (rebornix) left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me. Let's make sure we have issues tracking https://github.com/microsoft/vscode/pull/204783/files#diff-4677a47fd6ba528332f9c7620a387a37bc7092af04591fdcb1a16701f8fe5951R97 and in this PR we already have two places parsing the indent* settings ourselves.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Cannot pick tabs vs spaces in notebook

3 participants