8种机械键盘轴体对比
本人程序员,要买一个写代码的键盘,请问红轴和茶轴怎么选?
符號說明
⌥—> option|alt
⇧—>shift
⌃—>control
⌘—>command
⎋—>esc
注: 与F6/F7/F12等F功能键开头的组合的快捷键需要按住fn开启功能键
如:快捷键⌘F12的按键组合为:fn + command + F12
⌘B: 跳到變數或function的宣告處
⌘D: 复制行
⌘E: 打开最近访问的文件列表
⌘N: 快速生成getter/setter方法,构造方法,toString()方法等
⌘R: 批量取代
⌘delete: 删除行
⌘/: 單行注释与取消注释,注释效果 //…(先mouse選取範圍)
⌃O: 引入重写父类的方法[Override Methods]
⌃I: 引入实现接口或抽象类方法
⌥Enter: 自動變量宣告
⇧⌘F: 進階search功能,可選project、module
⇧⌥up/down: 移动行上下移动
⌥⌘/: 多行注释与取消注释,注释效果 /…/(先mouse選取範圍)
⌥⌘L: 代码格式化(括號的一致性)
⌥⌘M: 方法抽离(選取程式碼,按下快捷,輸入新function name,產生新function)
⌥⌘P: 变量抽离成方法参数
⌥⌘V: 变量抽离
logt 自動產生 tag stringprivate static final String TAG = "Activity";
logm 自動產生輸出參數的logLog.d(TAG, "onCreate() called with: savedInstanceState = [" + savedInstanceState + "]");
ifn/inn function 的傳入參數自動進行null checkif (savedInstanceState == null) {
}
//inn
if (savedInstanceState != null) {
}
foreach/fori 自動產生模版//foreach
for (:
) {
}
//fori
for (int i = 0; i < ; i++) {
}
fbc 自動產生模版() findViewById(R.id.);
visible 自動產生模版.setVisibility(View.VISIBLE);
Toast 自動產生模版Toast.makeText(this, "", Toast.LENGTH_SHORT).show();
Auto import
file->other setting->default setting->auto importoptimize imports on the fly
add unambiguous imports on the fly
快捷鍵設定
android studio->preferences->keymap