Visual studio code 如何子串预定义变量?
我可以将预定义的vscode变量${fileDirname}作为子字符串吗 假设fileDirname为“/主页/您的用户名/您的项目/文件夹” 在我的情况下,我想得到“/家/你的用户名/你的项目” 当前my launch.json看起来像:Visual studio code 如何子串预定义变量?,visual-studio-code,vscode-debugger,Visual Studio Code,Vscode Debugger,我可以将预定义的vscode变量${fileDirname}作为子字符串吗 假设fileDirname为“/主页/您的用户名/您的项目/文件夹” 在我的情况下,我想得到“/家/你的用户名/你的项目” 当前my launch.json看起来像: { "version": "0.2.0", "configurations": [ { // ... "name": "vscode-jest-tests",
{
"version": "0.2.0",
"configurations": [
{
// ...
"name": "vscode-jest-tests",
"request": "launch",
"args": [
"${fileBasenameNoExtension}",
"--runInBand",
"--config",
"> > > I would like to substring this: ${fileDirname}"
],
// ...
}
]
}
${workspaceFolder}
对您有用吗?不,我确实需要一种方法在${fileDirname}上执行子字符串操作