Skip to content

Instantly share code, notes, and snippets.

@nateshmbhat
Created December 5, 2017 14:29
Show Gist options
  • Save nateshmbhat/b8bf1329d84d922a26514f03b8a7c45c to your computer and use it in GitHub Desktop.
Save nateshmbhat/b8bf1329d84d922a26514f03b8a7c45c to your computer and use it in GitHub Desktop.
Vscode (Visual Studio Code ) Settings.json File which contains some important configuration regarding vim settings and Compiler and Debuggers for various languages
{
"window.zoomLevel": 1,
"git.enableSmartCommit": true,
"workbench.colorTheme": "Monokai Darker",
"vim.useCtrlKeys": false,
"workbench.panel.location": "bottom",
"python.pythonPath": "/usr/bin/python3" ,
"python.linting.pylintArgs": [
"--errors-only"
],
"workbench.iconTheme": "material-icon-theme",
"material-icon-theme.folders.color": "#7cb342" ,
"code-runner.executorMap": {
"javascript": "nodejs",
"java": "cd $dir && javac $fileName && java $fileNameWithoutExt",
"c": "cd $dir && gcc -g \"$fileName\" -o \"$fileNameWithoutExt\" && $dir\"$fileNameWithoutExt\"",
"cpp": "cd $dir && gcc -g \"$fileName\" -o \"$fileNameWithoutExt\" && $dir\"$fileNameWithoutExt\"",
"objective-c": "cd $dir && gcc -framework Cocoa $fileName -o $fileNameWithoutExt && $dir$fileNameWithoutExt",
"php": "php",
"python": "python3",
"perl": "perl",
"ruby": "ruby",
"go": "go run",
"lua": "lua",
"groovy": "groovy",
"powershell": "powershell -ExecutionPolicy ByPass -File",
"bat": "cmd /c",
"shellscript": "bash",
"fsharp": "fsi",
"csharp": "scriptcs",
"vbscript": "cscript //Nologo",
"typescript": "ts-node",
"coffeescript": "coffee",
"scala": "scala",
"swift": "swift",
"julia": "julia",
"crystal": "crystal",
"ocaml": "ocaml",
"r": "Rscript",
"applescript": "osascript",
"clojure": "lein exec",
"haxe": "haxe --cwd $dirWithoutTrailingSlash --run $fileNameWithoutExt",
"rust": "cd $dir && rustc $fileName && $dir$fileNameWithoutExt",
"racket": "racket",
"ahk": "autohotkey",
"autoit": "autoit3",
"kotlin": "cd $dir && kotlinc $fileName -include-runtime -d $fileNameWithoutExt.jar && java -jar $fileNameWithoutExt.jar",
"dart": "dart",
"pascal": "cd $dir && fpc $fileName && $dir$fileNameWithoutExt",
"d": "cd $dir && dmd $fileName && $dir$fileNameWithoutExt",
"haskell": "runhaskell",
"nim": "nim compile --verbosity:0 --hints:off --run"
}
}
@VictorGob
Copy link

To compile and run .c files in Windows+Powershell

"c": "cd $dir && gcc -g \"$fileName\" -o \"$fileNameWithoutExt.exe\"; & \"$fileNameWithoutExt.exe\"",

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment