본문으로 바로가기

VS code tasks.json 변수 치환

category 프로그래밍개발툴 7년 전

Variable substitution

When authoring tasks configurations, it is often useful to have a set of predefined common variables. VS Code supports variable substitution inside strings in the tasks.json file and has the following predefined variables:

  • ${workspaceFolder} the path of the workspace folder that contains the tasks.json file
  • ${workspaceFolderBasename} the name of the workspace folder that contains the tasks.json file without any slashes (/)
  • ${file} the current opened file
  • ${relativeFile} the current opened file relative to the workspace * folder containing the file
  • ${fileBasename} the current opened file's basename
  • ${fileBasenameNoExtension} the current opened file's basename without the extension
  • ${fileDirname} the current opened file's dirname
  • ${fileExtname} the current opened file's extension
  • ${cwd} the task runner's current working directory on startup
  • ${lineNumber} the current selected line number in the active file

프로그래밍개발툴카테고리의 다른글

Visual Studio Code 폰트 크기 설정  (0) 2018.08.08
IntelliJ 설치후 기본 설정  (0) 2018.01.08
Intellij platform Tips ans Tricks  (0) 2017.08.27
Visual Studio 2017/2019 Tips  (0) 2017.08.15
Visual studio Code Tips  (0) 2017.08.15