我想在 args 的文本中使用正則運算式,
{
"key": "ctrl shift r",
"command": "workbench.action.terminal.sendSequence",
"args": { "text":'${file}.'\u000D" }
}
我想使用此正則運算式從檔案路徑中^\\(. \\)*(. )\.(. )$
獲取檔案名-或者以其他方式獲取檔案名,任何人都可以提供幫助?:)
uj5u.com熱心網友回復:
你不需要使用正則運算式,你想使用不同的變數:
{
"key": "ctrl shift r",
"command": "workbench.action.terminal.sendSequence",
"args": { "text": "'${fileBasename}'" }
}
請參閱變數參考。
轉載請註明出處,本文鏈接:https://www.uj5u.com/houduan/362259.html
