当前位置:   article > 正文

【VSCode】 : launch.json常用属性_lanunch.json ${workspaceroot}

lanunch.json ${workspaceroot}

launch.json常用的具体含义如下:

  • ${workspaceRoot}
    the path of the folder opened in VS Code(VSCode中打开文件夹的路径)
  • ${workspaceRootFolderName}
    the name of the folder opened in VS Code without any solidus (/)(VSCode中打开文件夹的路径, 但不包含"/")
  • ${file}
    the current opened file(当前打开的文件)
  • ${relativeFile}
    the current opened file relative to workspaceRoot(当前打开的文件,相对于workspaceRoot)
  • ${fileBasename}
    the current opened file’s basename(当前打开文件的文件名, 不含扩展名)
  • ${fileDirname}
    the current opened file’s dirname(当前打开文件的目录名)
  • ${fileExtname}
    the current opened file’s extension(当前打开文件的扩展名)
  • ${cwd}
    the task runner’s current working directory on startup
声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/我家自动化/article/detail/400144
推荐阅读
相关标签
  

闽ICP备14008679号