是否可以更改项目面板的字体大小?

我可以看到在哪里可以改变编辑器字体,但项目面板字体似乎不合理的大。重写默认字体只会更改上面的路径栏和一些其他元素。

50580 次浏览

UPDATE-2016: it is possible, see this

It's not possible, unfortunately, please watch/vote for the bug.

UPDATE: In the later versions global font/size setting under Settings (Preferences) | Appearance also controls the project view tool window font, but there is still no way to control the project view font individually, without changing the font/size of the other UI elements.

Increase the resolution of your monitor in your computer's video card settings. Everything will get smaller. Then you can increase the size of your font in the editor to compensate. Of course, that might make other programs control features seem too small, but if you're saying it is too big, you're probably are using a low resolution (below 1268x1024). Then again maybe you have awesome vision and everything looks big to you because you can see small things really well.

This can done from File | Settings | Appearance. Modify Name & Size fields under the heading Font as per need.

You might need to restart the IDE for this to take effect.

Save Default scheme with a new scheme name then it will allow you to change font.

This worked for me in IntelliJ 14.0.3 Community Edition in Ubuntu:

File | Settings | Appearance & Behavior | Appearance

And then tick on:

[ ] Override default fonts by (not recommended)


Name: Ubuntu       Size: 14

There you can choose the font and the size of everything: menus, Project panel, Editor, etc... For me, on Linux, it is fine to set it to 15 (default is 14), and then adjust the Editor font alone under:

Editor | General

Mouse
[ ] Change font size (Zoom) with Ctrl+Mouse Wheel

I recently had the problem as well; suddenly the font in the project panel was larger than the others. However, I found a hidden option in the settings of IntelliJ which disables this odd behavior:

  • Open the file ~\.IdeaIC2018.1\config\options\ide.general.xml
  • Set the entry with key bigger.font.in.project.view to false

This is what the file now looks like for me:

<application>
<component name="GeneralSettings">
<option name="confirmExit" value="false" />
<option name="processCloseConfirmation" value="TERMINATE" />
<option name="searchInBackground" value="true" />
</component>
<component name="Registry">
<entry key="ide.tooltip.initialDelay" value="604" />
<entry key="tabs.alphabetical" value="true" />
<entry key="SBT.system.in.process" value="true" />
<entry key="bigger.font.in.project.view" value="false" />
</component>
</application>

I did not found this option in the GUI though.

The fix for me was to switch the Theme from GTK+ to IntelliJ, I confirm that Darcula works as well. The fonts broke for me following a switch to proprietary NVIDIA video drivers. On Manjaro Linux running Android Studio.

Settings->Appearance & Behavior->Appearance->Use Custom font-> Set font size