简体   繁体   English

仅在 vscode 中打开 vsc-workspace 扩展文件

[英]Open vsc-workspace extension files in vscode only

I am using ubuntu, I have configured few vscode workspaces.我正在使用 ubuntu,我配置了几个 vscode 工作区。 I would like to open the workspace files directly in vscode when I double click them.当我双击它们时,我想直接在 vscode 中打开工作区文件。 I have tried setting the default to vs code.我尝试将默认设置为 vs 代码。 However, it is making every plain text file to open in vscode, which I don't like.但是,它使每个纯文本文件都可以在 vscode 中打开,这是我不喜欢的。 This is because I generally have text files which can be hundereds of MB and it will crash my system if opened in vscode.这是因为我通常有数百 MB 的文本文件,如果在 vscode 中打开它会使我的系统崩溃。 Please let me know if some one has fixed this.如果有人解决了这个问题,请告诉我。

I think this was solved by vscode dev team now.我认为这已经由 vscode 开发团队解决了。

I am using ubuntu 20.4LTS.我正在使用 ubuntu 20.4LTS。 With VSCode installed via snap.通过 snap 安装 VSCode。 On latest version as of this answer ie, 1.49.1.在此答案的最新版本上,即 1.49.1。

I have set vscode as default application for opening .code-workspace extension files.我已将 vscode 设置为打开 .code .code-workspace扩展文件的默认应用程序。 If you have not set that already, you can do so by:如果您尚未设置,您可以通过以下方式进行设置:

Right click on file > Properties > Choose the tab Open With > Choose Visual Studio Code from the list and click on set as default. Right click on file > Properties >选择选项卡Open With方式>从列表中选择Visual Studio Code ,然后单击设置为默认值。

Thanks for the community for closing this.感谢社区关闭它。 Cheers干杯

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM