Welcome toVigges Developer Community-Open, Learning,Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
462 views
in Technique[技术] by (71.8m points)

visual studio code - How to open a file by cmd+click a path in the vscode output panel

I print the path in the output panel.

let channel = vscode.window.createOutputChannel("channel");
// absolute path
channel.appendLine(`/home/wuminghui/workspace/kbuild/kbuild_dir1/BUILD`);
// relative path 
channel.appendLine(`kbuild_dir1/BUILD`);
channel.show();

I cannot open the file by cmd+click the path of the output panel. But I can open the file by printing the same content in the terminal panel. Is this feature not supported by vscode?


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
等待大神答复

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to Vigges Developer Community for programmer and developer-Open, Learning and Share
...