ctrl + 1,快速修复

ctrl + d, 快捷删除行

shift + Enter,快速移动光标到下一行

ctrl + F11,运行代码

alt + ↑/↓,快速移动行

ctrl + alt + ↑/↓,快速复制行

ctrl + m,放大工作区

ctrl + /,快速注释

ctrl + 单击类名,查看父类

在方法签名完整的情况下,javadoc将自动生成参数及返回信息行

快捷键 功能
ctrl + shift + o 导入库包
alt + / 显示提示信息

技巧:

双击页面标签可以最大化或还原

Q:警告:Unexpected text found in layout file """

A:分析:存在不可见字符。解决:Project-->Clean...

Q:如何输出调试信息?

A:System.out.println(msg);即可,但不推荐。

建议使用LogCat。

Log.d(tag, msg);

Log可用的方法有五种:v(verbose)、d(debug)、i(info)、w(warn)、e(error)。

tag标签可以用作filter

相关文章:

  • 2022-12-23
  • 2022-02-24
  • 2021-11-07
  • 2021-08-14
  • 2021-06-18
  • 2021-10-04
  • 2021-09-25
猜你喜欢
  • 2021-09-25
  • 2021-10-05
  • 2021-09-25
  • 2021-10-11
  • 2021-07-14
  • 2022-12-23
  • 2021-11-13
相关资源
相似解决方案