2015-10-06 54 views

回答

0

這是我的tasks.json。我發現它在某個地方,使用Make可以正常工作。

{ 
    "version": "0.1.0", 
    "command": "make", 
    "isShellCommand": true, 
    "tasks": [ 
     { 
      "taskName": "Makefile", 
      // Make this the default build command. 
      "isBuildCommand": true, 
      // Show the output window only if unrecognized errors occur. 
      "showOutput": "always", 
      // No args 
      "args": ["all"], 
      // Use the standard less compilation problem matcher. 
      "problemMatcher": { 
       "owner": "cpp", 
       "fileLocation": ["relative", "${workspaceRoot}"], 
       "pattern": { 
        "regexp": "^(.*):(\\d+):(\\d+):\\s+(warning|error):\\s+(.*)$", 
        "file": 1, 
        "line": 2, 
        "column": 3, 
        "severity": 4, 
        "message": 5 
       } 
      } 
     } 
    ] 
} 
相關問題