有意识逼自己,把工具使用好,提高开发效率,少做无用功。
IDE快捷键和指法
切记:不要一个一个删除字符,不要一个一个移动光标
-
command + left/right 行头行尾
-
option + left/right 光标按照单词切分
-
option + delete 删除整个单词
-
command + delete 删除整行
-
shift + command + right 选中整行(光标在行头时)
-
commend + e IDE中左右跳最近访问访问的文件
-
control + m 跳转到括号位置
-
在Commend Line输入open . 将会直接打开finder(超好用)
-
psvm (public static void main)
-
sout
-
google搜索 top tips xx IDE & best practice xx IDE
-
VS Code LeetCode插件安装
高效利用help
遇到问题,优先使用help,而不是去浏览器搜索。
-
Spark
spark2-shell —help
-
Git
git --help
-
Linux
man lsof
Linux
-
iterm2 + zsh + oh-my-zsh
-
~/.vimrc(配置vim)
set nu “显示行号
syntax on “自动语法高亮
set shiftwidth=4 “默认缩进4个空格
set softtabstop=4 “使用tab时 tab空格数
set tabstop=4 “tab 代表4个空格
set expandtab “使用空格替换tab
书写工具
-
MarkDown
运用格式,会得到很漂亮的排版,并且支持代码和数学公式,可视化非常好。
MarkDown语言的优势,纯文本编辑,跨平台,一次学习终身复用。
写README.md,写文档,写博客,写日常记录。
不要在sublime或者VScode,甚至是text中写记录。更不要用word。
谷歌浏览器
-
前进/后退 command+[ / ]
defaults write com.google.Chrome AppleEnableSwipeNavigateWithScrolls -bool FALSE (取消触摸板左右滑动)
-
切换页面
Shift + command + [ / ]
-
历史记录
-
书签管理器