【问题标题】:How to correct indentation in android studio [duplicate]如何纠正android studio中的缩进[重复]
【发布时间】:2015-11-07 06:08:15
【问题描述】:

在 Eclipse 中,我们可以通过按 Ctrl + Shift + F 来纠正缩进。如何在 android studio 中更正缩进(格式代码)?

【问题讨论】:

    标签: java android android-studio


    【解决方案1】:

    选择代码并按

    • 在 Windows 上:Ctrl + Alt + L
    • 在 MAC 上:CMD + 选项 + L

    【讨论】:

      【解决方案2】:
      File->settings->Keymap and select 'eclipse' from keymap dropdown.
      

      通过这样做,eclipse的所有快捷方式也可以在工作室中使用

      【讨论】:

        【解决方案3】:

        File->settings->Keymap 并从 keymap 下拉菜单中选择“eclipse”。

        【讨论】:

          猜你喜欢
          • 1970-01-01
          • 1970-01-01
          • 2017-05-05
          • 2019-09-05
          • 2019-06-24
          • 1970-01-01
          • 2021-05-03
          • 2021-01-23
          相关资源
          最近更新 更多