Skip to content

Instantly share code, notes, and snippets.

@kritoke
Last active April 19, 2020 16:12
Show Gist options
  • Save kritoke/6043764f6b7306b270d0caec681a8b1f to your computer and use it in GitHub Desktop.
Save kritoke/6043764f6b7306b270d0caec681a8b1f to your computer and use it in GitHub Desktop.
Visual Studio Code Config Files (Mostly for Elixir Settings)
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"type": "mix_task",
"name": "mix (Default task)",
"request": "launch",
"projectDir": "${workspaceRoot}"
},
{
"type": "mix_task",
"name": "mix test",
"request": "launch",
"task": "test",
"taskArgs": [
"--trace"
],
"startApps": true,
"projectDir": "${workspaceRoot}",
"requireFiles": [
"test/**/test_helper.exs",
"test/**/*_test.exs"
]
},
{ "type": "mix_task",
"request": "launch",
"name": "mix phx.server",
"task": "phx.server",
"taskArgs": [],
"projectDir": "${workspaceRoot}",
"env": {
"CLIENT_ID": "12345",
"CLIENT_SECRET": "54321"
},
"preLaunchTask": "deps.get",
"serverReadyAction":{
"pattern": "Access AuctionWeb.Endpoint at (https?://[^:]+:[0-9]+)",
"action": "openExternally"
}
}
]
}
{
"workbench.colorTheme": "Oceanic Next",
"editor.fontFamily": "Fira Code",
"editor.suggestSelection": "first",
"vsintellicode.modify.editor.suggestSelection": "automaticallyOverrodeDefaultValue",
"terminal.integrated.fontFamily": "Source Code Pro for Powerline, FontAwesome",
"editor.fontLigatures": true,
"editor.renderControlCharacters": true
}
{
// See https://go.microsoft.com/fwlink/?LinkId=733558
// for the documentation about the tasks.json format
"version": "2.0.0",
"tasks": [
{
"label": "build",
"type": "shell",
"command": "mix compile",
"group": {
"kind": "build",
"isDefault": true
},
"presentation": {
"panel": "new"
},
"problemMatcher": {
"owner": "elixir",
"fileLocation": [
"relative",
"${workspaceRoot}"
],
"pattern": {
"regexp": "^(.+):(\\d+):(\\d+):\\s+(\\d+):(\\d+)\\s+(warning|error):\\s+(.*)$",
"file": 1,
"line": 2,
"column": 3,
"endLine": 4,
"endColumn": 5,
"severity": 6,
"message": 7
}
}
},
{
"label": "deps",
"type": "shell",
"command": "mix deps"
},
{
"label": "deps.get",
"type": "shell",
"command": "mix deps.get"
},
{
"label": "clean",
"type": "shell",
"command": "mix clean"
},
{
"label": "run",
"type": "shell",
"command": "mix run",
"presentation": {
"panel": "new"
},
"problemMatcher": []
},
{
"label": "test",
"type": "shell",
"command": "mix test",
"group": {
"kind": "test",
"isDefault": true
},
"presentation": {
"panel": "new"
},
"problemMatcher": [
{
"owner": "elixir",
"fileLocation": [
"relative",
"${workspaceRoot}"
],
"pattern": [
{
"regexp": "\\s*\\d+\\).*\\(.*\\)$"
},
{
"regexp": "\\s+([^:]*):(\\d*)$",
"file": 1,
"line": 2
},
{
"regexp": "^\\s+(.*)$",
"message": 1
}
]
}
]
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment