Guest User

Untitled

a guest
Feb 16th, 2019
121
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.37 KB | None | 0 0
  1. #include "stadfx.h"
  2. #include < iostream >
  3.  
  4. int _tmain(int argc, _TCHAR* argv[]) {
  5. std::cout <<"Hello, World" <<std::endl;
  6.  
  7. return 0;
  8. }
  9.  
  10. {
  11. "version": "2.0.0",
  12. "runner": "terminal",
  13. "type": "shell",
  14. "echoCommand": true,
  15. "presentation" : { "reveal": "always" },
  16. "tasks": [
  17. //C++ 컴파일
  18. {
  19. "label": "build and compile for C++",
  20. "type": "shell",
  21. "command": "g++",
  22. "args": [
  23. "${file}",
  24. "-o","-g",
  25. "${fileDirname}/${fileBasenameNoExtension}"
  26. ],
  27. "group": {
  28. "kind":"build",
  29. "isDefault": true },
  30.  
  31. //컴파일시 에러를 편집기에 반영
  32. //참고: https://code.visualstudio.com/docs/editor/tasks#_defining-a-problem-matcher
  33.  
  34. "problemMatcher": {
  35. "fileLocation": [
  36. "relative",
  37. "${workspaceRoot}"
  38. ],
  39. "pattern": {
  40. // The regular expression.
  41. //Example to match: helloWorld.c:5:3: warning: implicit declaration of function 'prinft'
  42. "regexp": "^(.*):(\d+):(\d+):\s+(warning error):\s+(.*)$",
  43. "file": 1,
  44. "line": 2,
  45. "column": 3,
  46. "severity": 4,
  47. "message": 5
  48. }
  49. }
  50. },
  51. //C 컴파일
  52. {
  53. "label": "save and compile for C",
  54. "command": "gcc",
  55. "args": [
  56. "${file}",
  57. "-o",
  58. "${fileDirname}/${fileBasenameNoExtension}"
  59. ],
  60. "group": {
  61. "kind":"build",
  62. "isDefault": true},
  63.  
  64. //컴파일시 에러를 편집기에 반영
  65. //참고: https://code.visualstudio.com/docs/editor/tasks#_defining-a-problem-matcher
  66.  
  67. "problemMatcher": {
  68. "fileLocation": [
  69. "relative",
  70. "${workspaceRoot}"
  71. ],
  72. "pattern": {
  73. // The regular expression.
  74. //Example to match: helloWorld.c:5:3: warning: implicit declaration of function 'prinft'
  75. "regexp": "^(.*):(\d+):(\d+):\s+(warning error):\s+(.*)$",
  76. "file": 1,
  77. "line": 2,
  78. "column": 3,
  79. "severity": 4,
  80. "message": 5
  81. }
  82. }
  83. },
  84. // 바이너리 실행(Ubuntu)
  85.  
  86. {
  87.  
  88. "label": "execute",
  89.  
  90. "command": "cd ${fileDirname} && ./${fileBasenameNoExtension}",
  91.  
  92. "group": "test"
  93.  
  94. }
  95.  
  96. ]
  97. }
  98.  
  99. "version": "0.2.0",
  100. "configurations": [
  101. {
  102. "name": "(lldb) Launch",
  103. "type": "cppdbg",
  104. "request": "launch",
  105. "program": "enter program name, for example ${workspaceFolder}/a.out",
  106. "miDebuggerPath": "/Users/a1/C++/cpp.exe",
  107. "args": [],
  108. "stopAtEntry": false,
  109. "cwd": "${workspaceFolder}",
  110. "environment": [],
  111. "externalConsole": true,
  112. "MIMode": "lldb"
  113. }
  114. ]}
  115.  
  116. {
  117. "configurations": [
  118. {
  119. "name": "Mac",
  120. "includePath": [
  121. "${workspaceFolder}"
  122. ],
  123. "defines": ["_DEBUG", "UNICODE"],
  124. "macFrameworkPath": [
  125. "/System/Library/Frameworks",
  126. "/Library/Frameworks"
  127. ],
  128. "compilerPath": "/Users/a1/C++/first.cpp",
  129. "cStandard": "c11",
  130. "cppStandard": "c++17",
  131. "intelliSenseMode": "clang-x64"
  132. }
  133. ],
  134.  
  135. "browse": {
  136. "path": [
  137. "${workspaceFolder}","/Users/a1/C++/first.cpp"
  138. ],
  139. "limitSymbolsToIncludedHeaders": true,
  140. "databaseFilename": ""
  141. },
  142.  
  143. "version": 4
  144. }
Add Comment
Please, Sign In to add comment