在MAC終端中用sublime、VSCode開啟目錄
1.進入.zshrc
cd ~
vi .zshrc
2.加入sublime、VSCode的別名和目錄
執行的目錄:Finder–>應用程式–>指定編輯器右鍵顯式包內容–>找到執行檔案
在.zshrc檔案的末尾加上一下內容
alias subl='/Applications/SublimeText.app/Contents/SharedSupport/bin/subl'
alias code='/Applications/Visual\ Studio\ Code.app/Contents/Resources/app/bin/code'
\ 為空格轉義
3.使用軟體別名開啟目錄
code .
相關推薦
在MAC終端中用sublime、VSCode開啟目錄
1.進入.zshrc cd ~ vi .zshrc 2.加入sublime、VSCode的別名和目錄 執行的目錄:Finder–>應用程式–>指定編輯器右鍵顯式包內容–>
Mac終端上傳、下載檔案到阿里雲伺服器Ubuntu18.04
這裡直接在終端用scp命令進行傳輸,scp是secure copy即安全傳輸的簡寫,是用於在Linux下進行遠端拷貝檔案的命令,和它類似的命令有cp,不過cp只是在本機進行拷貝,而scp是跨伺服器傳輸並且是加密的。 scp的幫助資訊 ElonJelinek:D
Mac終端新增ll、la、l命令
Mac終端新增ll、la、l命令 NO.1 編輯.bash_profile檔案 vim ~/.bash_profile NO.2 新增別名對映關係 alias ll='ls -alF' alias la='ls -A' alias l='ls -CF' NO.3
怎麼讓mac終端輸入python預設開啟python3
背景:mac os x預設安裝python2.7,所以雖然後來裝了python3.5,但在終端中輸入python -V,仍然顯示版本號是2.7。 那麼,想在終端中輸入python,進入python3的環境要怎麼做呢? *** 1. 終端開啟.bash_profile檔案
如何在VSCode和Sublime Text當中開啟eslint檢查?
這個問題,我自己也折騰了很久,在這裡分享給你們。 當前的環境 作業系統: MacOS(雖然我這麼寫,但是對於擴平臺的編輯器來說,沒什麼影響)node版本:v8.9.4vue-cli版本:v3.0.1sublime text版本:v3.1.1 build3176vsc
mac終端(Terminal)字型顏色更改教程 [ls、vim操作顏色] (自己收藏)
做開發的朋友可能經常會用到終端,mac自帶的終端是款非常好用的ssh工具,但是終端單調的顏色是不是看得眼睛很生澀? ok,下面分享下mac終端字型顏色更改的方法。整理自網際網路,非原創,高手勿噴,幫助下不知道的朋友。 第一步:偏好設定 最基
vscode 開啟終端快捷鍵
使用vscode的過程中,我們可能會用到終端,雖然系統自帶有,但是還要另外開啟,有點不方便,vscode中就有這個功能,開啟方法1. 使用快捷鍵: ctrl + · 即可;注意那個點是鍵盤上 e
mac下新增sublime text開啟快捷鍵 subl
我居然一直都不知道,終端下可以使用subl命令,快捷開啟sublime text。 今天看了個老外的視訊,人家直接在終端中輸入了一個 'subl' 命令,直接打開了sublime text。比較好奇,就搜尋了下。原來安裝了sublime text,就會有在 ‘/Appli
如何在mac的finder加入使用shell開啟當前目錄的快捷圖示?
使用mac有一段時間了,最近又發現了個好玩的功能。安裝一個外掛就可以在finder中使用shell開啟當前目錄。 首先,這個外掛叫go2shell,下載網址為:http://zipzapmac.com/go2shell 下載之後進行安裝,安裝後開啟介面如圖1: 圖1 然後
Mac終端使用技巧 切換到其他路徑和目錄
如果你想將當前 command line 會話切換到其他目錄,需要用到三個命令:pwd,ls和cd。pwd的含義是“print working directory”,會顯示當前目錄的絕對路徑。ls的含義是“list directory contents”,它會列出當
MAC終端切換目錄卡頓(cd xxx 慢)
一般情況下,cd 到任何目錄是非常快的,不會出現問題,當你裝了 oh-my-zsh 時,切換到git倉庫目錄時就會卡。 糾其原因: oh-my-zsh 預設都是啟用的 git 外掛,會去
mac 終端中新增tree命令顯示檔案目錄結構
在Ubuntu下,通過 sudo apt-get install tree 可以使用tree命令,顯示檔案目錄列表,如圖所示: 在mac OS X系統下怎麼使用呢? 在終端輸入: cd $home 進入localhost目錄,再輸入: vim .bashrc 顯示結果如下(點選鍵盤上的i,
Mac終端如何安裝強大的NERDTree,以及快捷鍵開啟與關閉NERDTree的方法!
零、安裝NERDTree 1. 在.vim中建立兩個子資料夾,分別是autoload、bundle,如下: 參考方法:建議先cd 到~/.vim資料夾直接建立. 2. 將pathogen.vim放到aut
IDEA、Sublime、Eclipse、VSCode 常用快捷鍵整合
本文供個人收錄使用(備份),沒有詳細介紹(苦於暫時沒得時間),讀者請根據提示自行嘗試體會。 *************IDEA 快捷鍵**************** CTRL+ [ ] CTRL +
解決Mac下VSCode開啟zsh亂碼
1.亂碼問題 iTerm2終端使用Zsh,並且配置Zsh主題,該主題主題需要安裝字型來支援箭頭效果,在iTerm2中設定這個字型,
給 Mac 新增右鍵選單「使用 VSCode 開啟」
最終的實現效果是在檔案 / 資料夾上右擊時,會出現選單項「用 VSCode 開啟」,點選後會啟動 Visual Studio Code 開啟對應的檔案 / 資料夾。 ![](https://img2020.cnblogs.com/other/86632/202010/86632-20201029200752
mac終端下修改MySQL的編碼格式--找不到my-default.cnf及my.cnf
methods slaver depend win pla doc ets -i 空白 首先請確認正確安裝好MySQL. 1- 先配置環境變量path 1.1 打開終端,輸入: cd ~ 會進入~文件夾, 1.2 然後輸入:touch .b
Qt程序關於路徑、用戶目錄路徑、臨時文件夾位置獲取方法
lis 靜態函數 目錄下的文件 兩個 top 存儲 class ber ron 比如我們有一個程序在: C:/Qt/examples/tools/regexp/regexp.exe 1. 程序所在目錄 QString QCoreApplication::appl
Mac 終端 Termial 高亮配置(PS1變量配置)
喜歡 格式 永恒 允許 換行符 顏色表 默認 但是 我們 操作環境: 系統:Mac 10.12 編輯器:vim 一、無腦配置: 1. 打開中端輸入: vi ~/.bash_profile 2. 打開並編輯 .bash_profile 文件: 按鍵盤“i”,進入
寫了一個Mac快速設置、打開和關閉Web代理的Shell命令
快速 還要 痛點 blog 如果 head 編程 shell腳本編程 偏好設置 緣由(痛點) 每次在Mac上設置Web代理,都需要點開"系統偏好設置 -- 網絡 -- 高級 -- 代理",然後分別設置Web代理(HTTP)和安全Web代理(HTTPS),設置完後,還要點"好