VimããVS Codeããä¹ãæãã¤ã¤ããæ¥ã
ããããã°ãVS Codeã§ä¾¿å©ã«ã§ãããã¨ãåãã£ã¦ãããã¨ãã£ã¿ã¯VS Codeããã£ãããæ°ã«å ¥ãã«ãªãVimããå®å ¨ã«ä¹ãæãã¤ã¤ããä»æ¥ãã®é ã§ãã
ããã ãä¹ãæããæ大å¤ãªã®ããç°å¢è¨å®ã§ããã1å°ã®PCãªããªãã¦ãã¨ç¡ãã®ã§ããããã©ã¤ãã¼ããä»äºã®éã®ã¨ã³ã¸ãã¢ã¨ãã¦ã®è«¸äºæ ã«ãããããã«10å°ãè¶ ãããã·ã³ã®ç°å¢è¨å®ãããå¿ è¦ãããã®ã§ããããããOSã¯MacãLinuxãWindowsã¨å¤å²ã«æ¸¡ãã¾ãããªãã¦ãã£ããâ¦
ãVimã§ã¯ã以ä¸ã®æ§ã«GitHubã§è¨å®ãã¡ã¤ã«ï¼.vimrcï¼ã管çãã¦ããã®ã§ãVS Codeã§ãåããã¨ãå®ç¾ãã¦ã¿ããã¨ã«ãã¾ããã
ãã¨ããããã§ãä»åã¯VS Codeã使ã£ã¦ãã¦ãGitHubãããç¨åº¦ç¥ã£ã¦ãããGitHubã¢ã«ã¦ã³ããæã£ã¦ãã人ã対象ã®è¨äºã«ãªãã¾ããGtiHubã«é¢ãã¦è©³ããç¥ããã人ã¯ã以ä¸è¨äºåç §ä¸ããã
ãã¡ãªã¿ã«ãVS Codeã«ã¯ãSetting Syncãã¨ããè¨å®ãã¡ã¤ã«ãåæãã¦ããã便å©ãªæ¡å¼µæ©è½ãããã®ã§ãããä»åã¯ãã¡ãã使ããªãã§åæãããå°ã åå§çãªæ¹æ³ã¨ãªãã¾ããä½æ ãSetting Syncãã使ããªããã¯èããªãã§ä¸ãããæ¢ãã«æ¢ã¾ãã¬äºæ ã§ãï¼å®æä¸ã®çç±ã¨ã§ãæã£ã¦ããã¦ä¸ããï¼ã
VS Codeãã¹ã¯ãªããã§ã»ããã¢ããããæ¹æ³
ãæåã«ãé常ã®VS Codeèªä½ã®ã¤ã³ã¹ãã¼ã«ã¨æ¡å¼µæ©è½ã®ã¤ã³ã¹ãã¼ã«ã«é¢ãã¦ã¯ä»¥ä¸è¨äºåç §ä¸ããã
ãVS Codeã®è¨å®ã«é¢ãã¦ã¯ãsetting.jsonãã¨ãããã¡ã¤ã«ã«ãåºæ¬çãªè¨å®ãããæ¡å¼µæ©è½ã®è¨å®ã¾ã§æ¸ããã¦ãã¾ããVimã§ããã¨ããã®.vimrcã§ããã
ãæ¡å¼µæ©è½ã®ã¤ã³ã¹ãã¼ã«ãããè¨å®ã¾ã§å ¨ã¦GUIã§ç°¡åã«ã§ããã®ãVS Codeã®è¯ãã¨ãããªã®ã§ããã1å°1å°è¨å®ããã®ã¯å¤§å¤ãªã®ã§ãããããã¹ã¯ãªããã§èªååãã¾ããæ¡å¼µæ©è½ã®ã³ãã³ãã§ã®ã¤ã³ã¹ãã¼ã«ã¯ä»¥ä¸è¨äºãåç §ãã¾ããã
【Visual Studio Code】v1.12.1 設定のためのSettings.jsonファイルについて - Qiita
ãã¾ããsetting.jsonãã¯ãããã¹ããã¡ã¤ã«ãªã®ã§åºæ¬çã«ã³ãã¼ããã°OKã§ãããã ããOSã«ãã£ã¦å ´æãç°ãªãã®ã注æç¹ã§ããã
ãGitHubã§ãããã®ã¹ã¯ãªãããç½®ãããªãã¸ããªãç¨æãã¾ããç§ã®å ´åã¯ä»¥ä¸ã§ãã
ããã¨ã¯ãREADMEã«ãæ¸ãã¦ããéãã§ãããç°¡åã«Mac, Linux, Windowsããããã«é¢ãã¦ã»ããã¢ããã®æ¹æ³ã説æãã¾ãããªããMacã¯Mac OS XãLinux㯠Ubuntu 16.04ãWindowsã¯Windows 10ãæ³å®ãã¦ãã¾ãã
Mac/Linuxã§ã®ã»ããã¢ãã
ãMac/Linuxã¯ããsetting.jsonãã®ç½®ãå ´æãç°ãªãã ãã§ãåºæ¬çã«ã¯ã»ã¼åãæ¹æ³ã§ã»ããã¢ããã§ãã¾ããæ¡å¼µæ©è½ã®ã¤ã³ã¹ãã¼ã«ã¯ã以ä¸ã³ãã³ãå®è¡ããã°OKã§ããGitHubä¸ã®ã¹ã¯ãªãããå®è¡ããæ¡å¼µæ©è½ãã¤ã³ã¹ãã¼ã«ããã¾ãã
$ curl -s https://raw.githubusercontent.com/karaage0703/vscode-dotfiles/master/install-vscode-extensions.sh | /bin/bash
ãsettting.jsonã«é¢ãã¦ã¯ãMacã®å ´åã¯ä»¥ä¸ã®éãã·ã³ããªã³ã¯ãè²¼ã£ã¦ããã¾ãã
$ cd $ git clone https://github.com/karaage0703/vscode-dotfiles $ ln -sf ~/vscode-dotfiles/settings.json ~/Library/Application\ Support/Code/User/settings.json
ãLinuxã®å ´åã¯ã3è¡ç®ã以ä¸ã®éãå¤æ´ãã¦ä¸ããã
$ ln -sf ~/vscode-dotfiles/settings.json ~/.config/Code/User/settings.json
ãã¢ãããã¼ãããå ´åã¯ãGitHubã®ãªãã¸ããªãæ´æ°ããå¾ãããããã®ãã·ã³ã§ä»¥ä¸ã³ãã³ãå®è¡ããã°OKã§ããã
$ cd ~/vscode-dotfiles $ git pull $ curl -s https://raw.githubusercontent.com/karaage0703/vscode-dotfiles/master/install-vscode-extensions.sh | /bin/bash
Windows
ãWindowsã®å ´åã¯ã以ä¸ã®éãWindows Subsystem for Linuxãã¤ã³ã¹ãã¼ã«ãã¾ãã
ããã¨ã¯ãMac/Linuxåæ§ã以ä¸ã³ãã³ãã§æ¡å¼µæ©è½ãã¤ã³ã¹ãã¼ã«ãã¾ãã
$ curl -s https://raw.githubusercontent.com/karaage0703/vscode-dotfiles/master/install-vscode-extensions.sh | /bin/bash
ãã¾ããWindowsã§ã¯ãã·ã³ããªãã¯ãªã³ã¯ããã¾ãæ©è½ããªãã£ãã®ã§ãä»æ¹ãªã以ä¸ã®ããã«ã³ãã¼ãã¾ããã
$ cd $ git clone https://github.com/karaage0703/vscode-dotfiles $ cp ~/vscode-dotfiles/settings.json /mnt/c/Users/karaage/AppData/Roaming/Code/User/settings.json
ããããã£ã¦ãã¢ãããã¼ãããå ´åã¯ãGitHubã®ãªãã¸ããªãæ´æ°ããå¾ãããããã®ãã·ã³ã§ä»¥ä¸ã³ãã³ããå®è¡ãããã¨ã«ãªãã¾ãã
$ cd ~/vscode-dotfiles $ git pull $ curl -s https://raw.githubusercontent.com/karaage0703/vscode-dotfiles/master/install-vscode-extensions.sh | /bin/bash $ cp ~/vscode-dotfiles/settings.json /mnt/c/Users/karaage/AppData/Roaming/Code/User/settings.json
ã¾ã¨ã
ãVS Codeãèªåã§ã»ããã¢ããããæ¹æ³ã«é¢ãã¦ã¾ã¨ãã¦ã¿ã¾ãããçµæ§ç ©éãªä¸ãOSã«ãã£ã¦ãæä½ãç°ãªããã¾ãã¡ãªã®ã§ãåºæ¬çã«ã¯ãSetting Syncãã®æ¡å¼µæ©è½ã使ã£ãæ¹ãç°¡åã§ã¹ãã¼ãã ã¨æãã¾ãã®ã§ãç¹ã«æããç§ã®ããã«æ¢ããå¾ãªãäºæ ãªããã°ããã¡ããè¯ããã¨æãã¾ãã
ããã ãä»çµã¿çã«ã¯åããããªãã¨ããã¦ããã ãã§ãã®ã§ããã®ãããªå°ãåå§çãªæ¹æ³ãç¥ã£ã¦ããã¨ãä½ãã¨å¿ç¨ããããã¨ãããã®ã§ã¯ãªãããªã¨æã£ãããã¾ãããã£ã¨è¯ãæ¹æ³ããã£ãããã¾ããããæ¯éGitHubã®ãªãã¸ããªã®æ¹ã«Pull Requestä¸ãããã