Skip to content

Instantly share code, notes, and snippets.

@nekko1119
Created January 30, 2016 12:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nekko1119/4fb9da4d65ddc5bf021e to your computer and use it in GitHub Desktop.
Save nekko1119/4fb9da4d65ddc5bf021e to your computer and use it in GitHub Desktop.
VSCodeの設定
@echo off
if "%~dpnx1" equ "" goto :eof
setlocal
set tempfile=%date:~4%%time::=%
set tempfile=%tempfile:/=%
set tempfile=%tempfile:.=%
set tempfile=%tempfile: =%
clang++ -o %tempfile%.exe "%~dpnx1" -std=c++1z
%tempfile%.exe
del %tempfile%.exe
endlocal
@echo off
if "%~dpnx1" equ "" goto :eof
setlocal
set tempfile=%date:~4%%time::=%
set tempfile=%tempfile:/=%
set tempfile=%tempfile:.=%
set tempfile=%tempfile: =%
clang -o %tempfile%.exe "%~dpnx1"
%tempfile%.exe
del %tempfile%.exe
endlocal
@echo off
if "%~dpnx1" equ "" goto :eof
setlocal
set tempfile=%date:~4%%time::=%
set tempfile=%tempfile:/=%
set tempfile=%tempfile:.=%
set tempfile=%tempfile: =%
C:\Windows\Microsoft.NET\Framework\v4.0.30319\csc.exe /out:%tempfile%.exe "%~dpnx1"
%tempfile%.exe
del %tempfile%.exe
endlocal
@echo off
setlocal
if "%~dpnx1" equ "" goto :eof
javac %~dpnx1
if %ERRORLEVEL% neq 0 goto :eof
java -cp %~dp1; %~n1
endlocal
del "%~dpn1.class"
:eof
exit /b %ERRORLEVEL%
@echo off
if "%~dpnx1" equ "" goto :eof
ruby "%~dpnx1"
@echo off
if "%~dpnx1" equ "" goto :eof
scala "%~dpnx1"
// Place your settings in this file to overwrite the default settings
{
"editor.renderWhitespace": true,
"editor.insertSpaces": "space",
"editor.fontSize": 15,
"editor.fontFamily": "Consolas,Meiryo",
"editor.wrappingColumn": 0,
"runner.languageMap": {
"c": "C:/VisualCodeRunner/crun.bat",
"cpp": "C:/VisualCodeRunner/cpprun.bat",
"java": "C:/VisualCodeRunner/javarun.bat",
"csharp": "C:/VisualCodeRunner/csrun.bat",
"scala": "C:/VisualCodeRunner/scalarun.bat",
"ruby": "C:/VisualCodeRunner/rubyrun.bat"
},
"runner.extensionMap": {
"scala": "scala"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment