Create a gist now

Instantly share code, notes, and snippets.

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