Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

vscode: improve tab size and wrapping #1271

Closed

Commits on Jun 27, 2022

  1. vscode: improve tab size and wrapping

    The contrib/vscode/init.sh script initializes the .vscode directory with
    some helpful metadata so VS Code handles Git code better.
    
    One big issue that VS Code has is detecting the tab width based on file
    type. ".txt" files were not covered by this script before, so add them
    with the appropriate tab widths. This prevents inserting spaces instead
    of tabs and keeps the tab width to eight instead of four or two.
    
    While we are here, remove the "editor.wordWrap" settings. The editor's
    word wrap is only cosmetic: it does not actually insert newlines when
    your typing goes over the column limit. This can make it appear like you
    have properly wrapped code, but it is incorrect. Further, existing code
    that is over the column limit is wrapped even if your editor window is
    wider than the limit. This can make reading such code more difficult.
    Without these lines, VS Code renders the lines accurately, without
    "ghost" newlines.
    
    Signed-off-by: Derrick Stolee <derrickstolee@github.com>
    derrickstolee committed Jun 27, 2022
    Configuration menu
    Copy the full SHA
    5383c63 View commit details
    Browse the repository at this point in the history