VS Codeãæè¿ãã使ã£ã¦ãã¾ã
ããã£ã¨Vimã¨ãã£ã¿ã使ç¨ãã¦ã®ã§ãããæè¿å°ãVS Codeã«ãæµ®æ°ä¸ã§ãã以ä¸ã®ããã«è²ã æ¡å¼µãå ¥ãã¦çµæ§ä¾¿å©ã«ä½¿ã£ã¦ãã¾ãã
ãä»ã¯ãæ¥ãã§å°ãä¿®æ£ãããå ´åã¯Vimããã£ããã³ã¼ãã£ã³ã°ããå ´åã¯VS Codeã¨ä½¿ãåãã¦ããæãã§ãã
ãSSH FSãæ¡å¼µã§ãªã¢ã¼ãã®ãã¡ã¤ã«ã®ç·¨é
ããã¼ã«ã«ãã·ã³ä¸ã®ãã¡ã¤ã«ç·¨éã¯ç¹ã«å°ããªãã®ã§ãããå°ãã®ã¯ä»¥ä¸ã®ããã«ãªã¢ã¼ãã®ãã·ã³ï¼ãµã¼ãçï¼ä¸ã®ãã¡ã¤ã«ãç·¨éãããã¨ãã§ããã
ãç¹ã«ããªã¢ã¼ãã®ãã·ã³ãRaspberry Piï¼ã©ãºãã¤ï¼ã®ããã«éåã ã¨VS Codeãåããã«ã¯éãã¦è¾ãã§ãã
ãä»ã¾ã§ã¯ãRemote VS Codeã¨ããæ¡å¼µæ©è½ã使ã£ã¦ããã®ã§ãããSSHã§ãã³ãã«ãæã£ãä¸ã«ã1ã¤1ã¤ç·¨éãã対象ã®ãã¡ã¤ã«ãæå®ããªãã¨ãããªãã®ã§çµæ§ä¸ä¾¿ã§ããæ®éã«ãªã¢ã¼ããã·ã³ããã¦ã³ããã¦ããæè¦ã§VS Codeããç·¨éã§ããªãã®ããªã¼ã¨å¦æ³ããªããããããªã½ãããä½ãæè¡åããªãã®ã§æ¶ã ã¨æãæ¿¡ãããªããå¯ãæ¥ã ã§ããï¼å¤§ããï¼ã
ããããªä¸ãç§ã¯ç¥ãè¦ã¤ãã¾ããï¼
ããæé«ãããâ¦ä»ãã£ã¦ãsshã§ãã³ãã«æã£ã¦rmate使ãããæ¹ããå§åçã«ä¾¿å© > Visual Studio Codeã§SSHããã«ãã¡ã¤ã«ãç·¨éãã https://t.co/vnISJTrkeC
— ãããã@OMMF2018 12/1-12/2 (@karaage0703) 2018å¹´11æ25æ¥
ã使ãæ¹ã¯ãSSH FSãã¨ããæ¡å¼µæ©è½ã追å ãã¦ãä¸è¨ã®è¨äºéãè¨å®ããã ãã§ããRaspberry Piã®ããã©ã«ãè¨å®ã®å ´åã¯ãSSHã®ã³ã³ãã£ã®ã¥ã¬ã¼ã·ã§ã³ãã¡ã¤ã«ã®è¨å®ã¯ä»¥ä¸ã§OKã§ãã
{ "label": "raspberry pi", "root": "/home/pi", "host": "raspberrypi.local", "port": 22, "username": "pi", "password": "raspberry" }
ã追è¨ï¼ææ°ã®ãã¼ã¸ã§ã³ã ã¨ãã³ã³ãã£ã°ç»é¢ã以ä¸ã®ããã«å¤ãã£ã¦ããããã§ãã
ãè¨å®ããå
容ã¨ãã¦ã¯ããã¹ãåraspberrypi.local
ã¨ãã¼ã22
ãã¦ã¼ã¶ã¼åããã¹ã¯ã¼ããè¨å®ããã¦ããã°åé¡ã¯ããã¾ããã
ãããã§ãVS Codeããã¯ãªãã¯ä¸çºã§ãRaspberry Piã«SSHæ¥ç¶ãã¦ãªã¢ã¼ãä¸ã®ãã¡ã¤ã«ãã¾ãã§ãã¼ã«ã«ã®ãã¡ã¤ã«ã®å¦ãç·¨éã§ãã¾ããæé«ããï¼ããããã£ã¨æ±ãã¦ãã¾ããâ¦
ã¾ã¨ã
ãæè¡çãªè¨äºã®ç´¹ä»ã ããªã®ã§ãVS Codeã®è¨äºã«è¿½è¨ãããã¨ããã®ã§ããããã¾ãã«ä¾¿å©ãªã®ã§æããå¢ãã§1è¨äºæ¸ãã¦ãã¾ãã¾ããï¼ç¬ï¼ãã¾ã«ã¯ããããã®ãè¯ãã§ããããã©ãºãã¤ä¸ã®ãã¡ã¤ã«ãç·¨éããã ãã§ãªãã¦ãè²ã å¿ç¨ã§ãããã§ããããã®æ¡å¼µã®ãããã§ãä»å¾ãã¾ãã¾ãVS Codeã使ããã¨ãå¢ãããã§ãã
追è¨ï¼Remote Developmentæ©è½ã«é¢ãã¦
ãVS Codeã«ãªãã£ã·ã£ã«ã«ãRemote Developmentãã¨ããæ¡å¼µãæä¾ãããã®ã§ããã¡ãã使ã£ãæ¹ãã¤ã±ã¦ããããããã¾ããã詳細ã¯ä»¥ä¸ãªã³ã¯å ãåç §ä¸ããã
VSCodeのSSH接続機能で、RaspberryPi内のコードを編集してデバッグ - Qiita
ãç§èªèº«ã¯ã¾ã 試ãã¦ããªãã®ã§ãããã試ãããè¨äºæ¸ãã¦ã¿ããã¨æãã¾ãã
é¢é£è¨äº
å¤æ´å±¥æ´
- 2020/05/02 Remote Developmentã«é¢ãã¦è¿½è¨
- 2019/05/27 ãã¼ã¸ã§ã³å¤æ´ã«ãã微修æ£