在開發過程中經常會先找某個資料夾,然後再手動開啟webstorm,再開啟檔案進行編輯。整個過程很耗時,作為一個懶程式設計師,於是就配置了快捷鍵來操作,只需點選快捷鍵便可在app中開啟檔案。
下面以開啟webstorm為例說一下配置方法。
Alfred3右擊 → Preferences
頂部選單欄如下

下面要做的操作主要是在features 和workflows中設定。以下按功能點進行設定:
使用app開啟選中檔案

想使用快捷鍵實現開啟功能就選擇hotkeys;想使用關鍵字則使用keywords
然後右側會出現設定的介面。
在頁面空白處右擊按圖進行選擇

在彈出的框中設定如下

相同方式新建actions


最後將hotkey和action連起來

done!