Android Studio 项目编码默认值 [英] Android Studio Project Encoding Default Value

查看:24
本文介绍了Android Studio 项目编码默认值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用的是 Android Studio 1.2,当我创建一个项目时,我通过 File -> Settings -> Editor -> File EncodingsFile Encodings 设置窗口>,在我的计算机(Windows 7 64 位)上有 Project Encoding 选项,默认为 GBK.我可以为每个项目手动将其更改为 UTF-8,但是有没有办法让它直接默认为 UTF-8?

I'm using Android Studio 1.2, when I create a project, then I open the File Encodings setting window via File -> Settings -> Editor -> File Encodings, there is the Project Encoding option which defaults to GBK on my computer (Windows 7 64 bit). I could manually change it to UTF-8 for each project, but is there a way to let it default to UTF-8 directly?

提前致谢.

推荐答案

请试一试,它对我有用.文件 -> 其他设置 -> 默认设置,然后找到文件编码",将项目编码更改为 UTF-8.

Please have a try, it works for me. File -> Other Settings -> Default Settings, then find "File Encodings", change Project Encoding to UTF-8.

这篇关于Android Studio 项目编码默认值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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