简体   繁体   English

如何摆脱Android Studio中代码残留的图像

[英]How do I get rid of the images left of the code in Android Studio

Basically, how can I hide these icons that appear automatically when I get the ID of a drawable in Java code? 基本上,当我用Java代码获得可绘制对象的ID时,如何隐藏这些自动出现的图标? Or at least limit their number to 1 instead of 5? 或者至少将其数量限制为1而不是5?

图片

I've looked everywhere in the settings and can't seem to find anything. 我在设置中到处都有,似乎什么也找不到。 And they are pretty annoying, as they take away quite a bit of coding space. 而且它们很烦人,因为它们占用了大量的编码空间。

You can disable the icons by going to preferences -> Editor -> Appearance. 您可以通过转到首选项->编辑器->外观来禁用图标。 There you will find a checkbox saying Show icons preview in gutter for small icons. 在那里,您会看到一个复选框,其中显示“在檐槽中显示图标预览”以显示小图标。 (Java) (JAVA)

You can also disable css color previews there if you want. 如果需要,您还可以在此处禁用css颜色预览。 For the change to take effect I had to restart Android Studio. 为了使更改生效,我必须重新启动Android Studio。

Go to preferences -> Editor-> Appearance. 转到首选项->编辑器->外观。 Uncheck the box that says "Show CSS color preview icon in gutter" 取消选中“在装订线中显示CSS颜色预览图标”框

在此处输入图片说明

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何在Android Studio中摆脱这些错误? - How do I get rid of these errors in Android Studio? android studio工程文件后如何摆脱(1)? - How do I get rid of (1) after android studio project files? 如何在Android Studio上使用TaskStackBuilder消除错误? - How do I get rid of errors using TaskStackBuilder on Android Studio? Android studio 3.0错误,我该如何解决? - Android studio 3.0 error, how can I get rid of it? 如何配置Android Studio摆脱这些错误? - How can I configure Android Studio to get rid of these errors? Android EditText:如何摆脱图形故障? - Android EditText: How do I get rid of the graphical glitches? 如何在Android应用程序中摆脱制表符之间的间距? - How do I get rid of spacing between tabs in Android application? 这是什么酒吧? 我该如何摆脱呢? Android VideoView - What is this bar? And how do I get rid of it? Android VideoView 如何在android studio中随机化图像? 我写的代码无法正常工作 - How do I randomize images in android studio? The code I wrote isn't working 如何摆脱我的 flutter 代码周围的这些奇怪的边界线? (android工作室中的颤振) - How to get rid of these weird border lines around my flutter code? (flutter in android studio)
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM