gpt4 book ai didi

android - Tab 键在 Android Studio 中不起作用

转载 作者:塔克拉玛干 更新时间:2023-11-03 00:37:55 26 4
gpt4 key购买 nike

我安装的是 Android Studio 版本 0.8.0并且我键盘上的 TAB 键不会在 Android Studio 的编辑器窗口中插入实际的选项卡。但我的 TAB 键通常工作正常。

请有人帮忙,因为我无法解决这个问题。谢谢。

最佳答案

文件 > 设置 > 项目设置 > 代码风格 - Java

Use tab character
If this check box is selected, tab characters are used: On pressing the Tab key For indentation For code reformatting When the check box is cleared, IntelliJ IDEA uses spaces instead of tabs.

Smart tabs
If this check box is selected, IntelliJ IDEA inserts tabs for indentation and reformatting, but fine alignment to a necessary column is done only via spaces without replacing them with tabs. This is done in order to preserve visual representation of the source code, when the tab size is changed.

If this check box is cleared, only tabs are used. This means that a group of spaces that fits the specified tab size is automatically replaced with a tab, which may result in breaking fine alignment. The Smart Tabs check box is available if the Use Tab Character check box is selected.

Tab size
In this text box, specify the number of spaces included in a tab.

您可能还需要转到 文件 > 设置 > 项目设置 > 代码样式。 XML 如果 Android xml 给你同样的问题。

http://www.jetbrains.com/idea/webhelp/code-style-java.html

关于android - Tab 键在 Android Studio 中不起作用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24873906/

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