question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

tab_width isn't applied properly

See original GitHub issue

My configuration is:

[*]
indent_size = 2
tab_width = 8

What I see in opened files is that both indentation size and tab width are set to 2.

I think, EditorConfig can’t work properly because of https://github.com/Microsoft/vscode/issues/10339.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:2
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
olzaragozacommented, Aug 17, 2016
[*]
indent_style = tab
tab_width = 4

screen1

is this what you want?

1reaction
cblpcommented, Aug 17, 2016

Here’s an example of such Makefile.

build:
    find -name '*.c' \
    | xargs
        grep
          --only-matching
          pattern

Unfortunately, GIthub replaces tab character with 4 spaces, so we have to pretend there is a tab.

Read more comments on GitHub >

github_iconTop Results From Across the Web

prettier.tabWidth not working · Issue #340 - GitHub
When i format a document the code gets formatted but the tab width is 2 spaces wide. This happens to all types of...
Read more >
Unable to set tab width to 4 in prettier - Stack Overflow
First, remove any .prettierrc from the working directory. Because it overrides user settings and uses the default values.
Read more >
Tabs and indents settings does not work
Hello,. I have a problem with tab and indents settings. In settings->codestyle->php->tabs&indents I have set tab character for indent.
Read more >
Maximum tab width makes tabs not move anymore - Reddit
Hey, so I wanted my tabs to be smaller by default, so I set added max-width: 80px to the .tabbrowser-tab:not([pinned]) section of my ......
Read more >
Add option to control tab width when viewing files - GitLab
If the tabs are used correctly, it does not matter whether the user likes 1 or 16 spaces - the code will always...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found