Understanding Visual Studio Code Tab Behavior

Asked 2 years ago, Updated 2 years ago, 79 views

I took a screenshot because it was hard to explain in writing.
Enter a description of the image here

I just pasted what I wrote on my notepad into vscode.
There is one Tab in the blank space.

In vscode, the indentation of abc is out of alignment.
I'd like to make it the same as a notepad, but
Is there any way?

By the way, my user settings are as follows.

{
    "files.encoding": "shiftjis",
    "editor.tabSize": 8,
    "editor.fontFamily": "MS Gothic",
    "editor.detectIndication": false,
    "editor.insertSpaces"—false
}

Thank you for your cooperation.

Note: March 22, 2018
I thought it was fixed in Ver.1.21.0, but unfortunately it hasn't been resolved yet...
If the dash or slash is full-width like this image, the indentation is still out of alignment.
Enter a description of the image here

Note: July 10, 2018
It's been a while since I checked, but Ver.1.25.0 still hasn't solved this problem.
I couldn't help but be curious, so I posted an issue myself.
I don't know if my English is correct, but I hope this will help.
https://github.com/Microsoft/vscode/issues/53919

Enter a description of the image here

vscode

2022-09-30 16:02

1 Answers

I'm in trouble, too.So I searched it and came here.
I also asked MSDN, but it was unfortunate.

I thought it might be because it is handled by internal Unicode.
For tab 8 settings, whether it's Ascii or kanji, I think it's moving in 8-character increments.

I've given up halfway between raising my request directly (in English) or modifying the source myself.

By the way, Visual Stdio treated tab characters as one kanji character to two half-width characters, but
If you insert a space, the result will be the same as mine.

I'm sorry that I didn't respond, but just for your information.

March 10, 2018
Ver.1.21.0 seems to have fixed it.I didn't check it in the release notes, but as far as I checked, it was OK.

March 22, 2018
Ver.1.21.0, but some of the problems still appear to be in place.
I have added the confirmation to the person who asked the question, so please take a look.
I can't speak English at all, but I'm starting to think about putting it on issue.

April 16, 2018
Ver.1.22.2 now looks like this:

Results in Ver.1.22.2

There was a version upgrade, so I wondered what would happen...
"I didn't mean to find fault, but I first typed ""Kigo"" and converted it, which is the result of Tab."It must be hard.


2022-09-30 16:02

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.