gpt4 book ai didi

android - 如何在 Android Studio 中为 'Fastfile' 指定编程语言?

转载 作者:行者123 更新时间:2023-12-04 04:18:47 27 4
gpt4 key购买 nike

我在我的 Android 项目中使用 FaSTLane。当我打开“faSTLfile”文件时,Android Studio 不会将此文件识别为 ruby​​ 代码。而且代码并不丰富多彩。如何为文件指定编程语言?

最佳答案

从 Android Studio Bumblebee 开始,以下解决方案已过时,因为为 Fastfile 添加了 Ruby 语法高亮显示。 (以及许多其他无扩展名文件)。
我会在这里保留旧的解决方案,以供引用。

我发现 Android Studio 北极狐(在撰写本文时最新)已经包含来自 TextMate 的 ruby​​ 语法。所需要的只是关联 Fastfile用它。
为此,我编辑了嵌入式 bundle 配置文件(这是 MacOS 上的路径,适应其他平台):"/Applications/Android Studio.app/Contents/plugins/textmate/lib/bundles/ruby/package.json"在文件中,我添加了 Fastfile到文件列表:

            ...
"filenames": [ "rakefile", "gemfile", "guardfile", "podfile", "capfile", "Vagrantfile", ".simplecov", "Fastfile" ],
...
我没有搜索太多,但在首选项中找不到这样做的方法。

关于android - 如何在 Android Studio 中为 'Fastfile' 指定编程语言?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/59970597/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com