Skip to content

Commit

Permalink
infrastructure: 🛠️ add VS Code support
Browse files Browse the repository at this point in the history
  • Loading branch information
maxbarsukov committed Oct 27, 2024
1 parent b3c4115 commit fa890b4
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,8 @@ fp_lab3-*.tar
.vscode/
.code-workspace
!.vscode/launch.json
!.vscode/tasks.json
!.vscode/settings.json
!.vscode/extensions.json

### Log files ###
*.log
Expand Down
7 changes: 7 additions & 0 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"recommendations": [
"JakeBecker.elixir-ls",
"samuel-pordeus.elixir-test",
"pantajoe.vscode-elixir-credo"
]
}
23 changes: 23 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"[elixir]": {
// Based on Elixir formatter's style
"editor.insertSpaces": true,
// Note: While it is possible to override this in your VSCode configuration, the Elixir Formatter
// does not support a configurable tab size, so if you override this then you should not use the
// formatter.
"editor.tabSize": 2,
"files.trimTrailingWhitespace": true,
"files.insertFinalNewline": true,
"files.trimFinalNewlines": true,

// Provides smart completion for "do" and "fn ->" blocks. Does not run the Elixir formatter.
"editor.formatOnType": true,

// Misc
"editor.wordBasedSuggestions": "off",
"editor.trimAutoWhitespace": false
},
"[json]": {
"editor.tabSize": 2
}
}

0 comments on commit fa890b4

Please sign in to comment.