Skip to content

Instantly share code, notes, and snippets.

@qin-yu
Last active April 6, 2020 20:22
Show Gist options
  • Save qin-yu/f451b8eb0ca9ccfc3cc05bbcf4bdb7ab to your computer and use it in GitHub Desktop.
Save qin-yu/f451b8eb0ca9ccfc3cc05bbcf4bdb7ab to your computer and use it in GitHub Desktop.

Some Important Settings for Visual Studio Code

Auto-format white-spaces and newlines on save in VS Code

{
    "files.trimTrailingWhitespace": true,
    "files.trimFinalNewlines": true,
    "files.insertFinalNewline": true
}

Word Wrap

{ "editor.wordWrap": "on" } There are four options: off, on, wordWrapColumn, bounded.

How to show line rulers in VS Code for your Fortran project?

In ./.vscode/settings.json, where . is the project directory, add the following:

{
    "editor.rulers": [0, 1, 5, 6, 79, 120]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment