Visual Studio Code ãå ¥ãã¾ãã
Visual Studio ã®ãªã¢ã¼ãéçºã®æ¡å¼µæ©è½ãå ¥ãã¾ãã
ãã㦠docker ãå ¥ãã¾ãã
Windows ã®äººã¯å ¥ãããè¨å®ãããã©ã¤ãå ±æããªã³ã«ãã¦ããã¾ãããã
Python 3 ã®ç°å¢ã欲ãã
é©å½ãªãã©ã«ãã¼ã Visual Studio Code ã§éãã¾ãã
F1
ã Ctrl + Shift + P
ãããã§ã³ãã³ããã¬ãããåºã㦠Remote Add
ãããã§æ¤ç´¢ãã㨠Remote Containers: Add Development Container Configuration Files...
ã¨ããé
ç®ãåºã¦ãã¾ãã
ã©ããªéçºç°å¢ã欲ããã®ããªã¹ããåºã¦ããã®ã§ Python 3 ãé¸ã³ã¾ãããããã¡ã¤ã«ãããã¤ã追å ããã¦ä»¥ä¸ã®ãããªãã®ã表示ãããã®ã§ Reopen in Container
ãé¸æãã¾ãã
åå㯠docker ã®ãã«ããèµ°ãã®ã§ãã°ããå¾ ã£ã¦ãã¨â¦ãPython ã®å ¥ã£ãã³ã³ããã¼ã§å ã»ã©ã®ãã©ã«ãã¼ãéããã¾ãã
ããã¼ã¯ã¼ã«ããã¦ã¿ã¾ããã
F5 ãæ¼ã㦠Python File ãé¸æããã¨å®è¡ããã¾ãã
ãã¬ã¼ã¯ãã¤ã³ããç½®ãã¦ãã¨â¦ã¡ããã¨æ¢ã¾ãã¾ãï¼ï¼
ãã¹ãã«ã¯ Python å ¥ã£ã¦ãªãã¨ããã®ã示ããã¨ã³ãã³ãããã³ãã㧠python ã£ã¦æã¡è¾¼ãã ãã¹ãã¢ãéãã¦ã³ã£ããããã
å度éãã¨ã㯠Remote Containers: Open Folder in Container
ãããããéãã°ããæãã«ãªãã¾ãã
ãã©ã«ãã¼ãã¤ã¢ãã°ãã ããå ´åã¯â¦
$ cd ç®çã®ãã©ã«ãã¼ $ code -r .
ãã¨ã¯ã³ã³ããã¼ã§ Reopen ãã¾ããã¨èãããã®ã§ Reopen ãã¦ãããã ãã§ãã
ã¾ã¨ã
Docker ãããã°å²ã¨ä½ã§ãã§ãã¦ä¾¿å©ã VS Code ã§ã·ã¼ã ã¬ã¹ã«ä½¿ããã¨ãããç¥ã