在其他编辑器中打开具有已注册文件类型的文件 [英] Open file with registered filetype in a different editor

查看:180
本文介绍了在其他编辑器中打开具有已注册文件类型的文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个带* .ts文件的项目。
在一个文件夹中,这些文件是TypeScript文件。
在另一个文件夹中,它是TypoScript文件。
文件类型* .ts已注册到TypeScript编辑器。
是否可以打开* ts文件并将其强制转换为其他编辑器?在这种情况下,它将是TypoScript编辑器。

I have a project with *.ts files. In one folder these files are TypeScript files. In another folder it's TypoScript files. The filetype *.ts is registered to the TypeScript Editor. Is it possible to open a *ts file and force it to a different editor? In this case it would be the TypoScript Editor.

我看到的唯一解决方法是将TypoScript文件重命名为* .tsc或* .t3s。
* .ats文件结尾的TypeScript文件不会从内部TypeScript编译器编译。

The only workaround i see is to rename the TypoScript files to *.tsc or *.t3s. TypeScript files with the *.ats file ending will not be compiled from the internal TypeScript compiler.

我使用的是intelliJ 15。

I am using intelliJ 15.

推荐答案

您可以通过使用外部工具右键单击文件夹或文件来执行此操作


设置搜索外部工具。

然后通过添加应用程序或编辑器的位置添加您想要打开文件的编辑器或应用程序
此图显示了如何添加应用程序

You can do it by right click on folder or file by using 'External Tools'
In setting search for External Tools.
then add the editor or application you want open file by adding the location of application or editor This picture shows how to add applications

然后右键单击任何文件或文件夹,选择外部工具,然后选择您的应用程序

Then right-click on any file or folder select External Tools then your application

这篇关于在其他编辑器中打开具有已注册文件类型的文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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