Swift4 Day97:Xcode Tips To Improve Productivity
Published in
2 min readApr 16, 2019
Move single or multiple lines of code up
or down
移動單行或多行 code
往上:option+command+[
往下:option+command+]
Add quick documentation to any function
快速地為你的 function 與 param 寫註解
option+command+/
Multiple ways to deal with breakpoints
breakpoints 新增刪除快捷鍵
command+\
breakpoints 無效
command+Y
就是按下方藍色標籤的功能。
Accessibility Inspector
在實作 Dynamic type 時,可以利用 Accessibility Inspector 快速切換系統字體大小。
Folding and unfolding codes
可以利用 Folding 把 Code 收起來比較方便閱讀
option+command+左鍵
Folding and unfolding codes using ribbons
先點選 Preferences,再把 Code folding ribbons打勾。
側面就會出現 Code folding ribbons ,點選一下就會折疊 Code 了。
Hide or show the debug area with the keyboard shortcut
收起與打開debug視窗的快捷鍵
shift+command+Y
Quickly switch between two Xcode windows
快速切換 Xcode 視窗快捷鍵
command+`
Quickly open assistant editor mode
Quickly open assistant editor mode
打開 assistant editor 的快捷鍵
option+command+return
Change the name of the app from plist
重新命名 App
原本預設是$(PRODUCT_NAME),直接改 Info 的 bundle name 就可以重新命名 App 了。