有人可以解释一下如何使vscode成为osx上的默认编辑器吗? [英] Can somebody explain how to make vscode the default editor on osx?

查看:57
本文介绍了有人可以解释一下如何使vscode成为osx上的默认编辑器吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Xcode是打开文件时的当前默认编辑器,我想将其切换为vscode

Xcode is the current default editor when opening files and I'd like to switch it to vscode

推荐答案

编辑器与macOS上的文件扩展名关联.

The editor is associated with the file extension on macOS.

当您选择一个代码文件时,按 Command + I 打开检查器(或从文件"或上下文菜单中选择获取信息"),您将找到一个区域称为打开方式:".展开后,您应该会看到一个下拉菜单和一个全部更改..."按钮.

When you select one of your code files press Command+I to open the inspector (or choose "Get Info" from either the "File"- or contextual menu) and you will find a section called "Open With:". When expanded you should see a drop-down menu and a "Change All…" button.

从下拉菜单中选择要打开此文件的应用程序,然后单击全部更改...".将出现一个对话框,要求您确认所有与当前文件具有相同扩展名的文件都将使用所选的编辑器.

Pick the application you would like to open this file from the drop-down menu and then click on "Change All…". A dialog will ask you to confirm that your chosen editor shall be used for all files that have the same extension as the current one.

对您想要更改关联编辑器的所有文件类型执行此操作.

Do this for all file-types where you would like to change the associated editor.

我希望这会有所帮助.

这篇关于有人可以解释一下如何使vscode成为osx上的默认编辑器吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆