Visual Studio Code에서 Java 개발 환경의 기본
하고 싶은 일
Java 버전 관리
체크 스타일
테스트를 IDE에서 실행
환경 변수 설정
Breakpoint의 Debug
Java Runtime
java.home
in settings.json
Command + Shift + P
Checkstyle
check_style.xml
가 있으면 마우스 오른쪽 버튼을 클릭하고 set the Checkstyle Configuration file
java.home
in settings.json
Command + Shift + P
Checkstyle
check_style.xml
가 있으면 마우스 오른쪽 버튼을 클릭하고 set the Checkstyle Configuration file
ぇtps:// ぇ CKSTYぇ. 그렇게 r세후레. 이오/베긴인 g_으로 ゔぇぉp면 t. HTML <- 불행히도 VSCode가 없습니다
settings.json
"java.format.settings.url": "https://raw.githubusercontent.com/google/styleguide/gh-pages/eclipse-java-google-style.xml",
Test
java test runner 이라는 Extention을 설치하고 위의 Runtime을 제대로 설정하면 VSCode에서 테스트를 실행할 수 있습니다.
환경 변수 설정
launch.json{
// 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": "java",
"name": "Launch Current File",
"request": "launch",
"mainClass": "${file}"
},
{
"type": "java",
"name": "Launch SampleApplication",
"request": "launch",
"mainClass": "com.nakamasato.testapp.SampleApplication",
"projectName": "testapp",
"env":{
"TEST_ENV": "value"
}
}
]
}
Breakpoint에서의 Debug
launch.json
{
// 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": "java",
"name": "Launch Current File",
"request": "launch",
"mainClass": "${file}"
},
{
"type": "java",
"name": "Launch SampleApplication",
"request": "launch",
"mainClass": "com.nakamasato.testapp.SampleApplication",
"projectName": "testapp",
"env":{
"TEST_ENV": "value"
}
}
]
}
Breakpoint에서의 Debug
Breakpoint 켜기
확인
감상
참고
Reference
이 문제에 관하여(Visual Studio Code에서 Java 개발 환경의 기본), 우리는 이곳에서 더 많은 자료를 발견하고 링크를 클릭하여 보았다 https://qiita.com/nakamasato/items/3b7c4956fad7a068544a텍스트를 자유롭게 공유하거나 복사할 수 있습니다.하지만 이 문서의 URL은 참조 URL로 남겨 두십시오.
우수한 개발자 콘텐츠 발견에 전념 (Collection and Share based on the CC Protocol.)