大猫 (Madao) - まるでダメなおっさん

Category Archives

72 Articles

缩进, Tab 还是空格?

by bigCat 31 Comments

TabsSpacesBoth

圣战

圣战个毛线

Android 好还是 iOS 好,Windows 好还是 Mac 好,编辑器好还是 IDE好,中划线好还是下划线好…
写代码这么多年,会遇到很多奇葩的毫无意义的所谓脑残粉的争论

昨天 @willerce 同学刚入职就提了个问题: 缩进用 Tab 还是空格的规范貌似没有啊?
大家突然意识到有这个问题…至少证明这不是啥大问题,或者算还没暴露出来的小问题
甚至…因为统一用 IntelliJ IDEA 自动被解决了还蒙在鼓里

随着深入的学习,发现了还是有讲究的…

windows 下 adb.exe 检测不到设备

by bigCat 8 Comments

在国内搞 Android 开发肯定会遇到的坑是:

Eclipse / ADT 提示

The connection to adb is down, and a severe error has occured.
You must restart adb and Eclipse.
Please ensure that adb is correctly located at 'D:\Dropbox\dev-tools\android-sdk\platform-tools\adb.exe' and can be executed.

IntelliJ IDEA 提示

Waiting for device.
USB device not found