Visual Studio Codeã¯ã30ãè¶ ããããã°ã©ãã³ã°èšèªãšãã¡ã€ã«åœ¢åŒããµããŒãããã³ãŒããšãã£ã¿ãŒã§ãããå€ãã®è¿œå ã®äŸ¿å©ãªæ©èœãåããŠããŸãã
ããŒã«ã¯ãã®æ¥ã«ãªãªãŒã¹ãããŸãããã以åã¯ãã®ã¯ãã¹ãã©ãããã©ãŒã ãšãã£ã¿ãŒã®åºæ¬æ©èœã«ã€ããŠèª¬æããŠããŸããã WindowsãOS XãLinuxãå®è¡ããŠããã³ã³ãã¥ãŒã¿ãŒã§VS Codeã䜿çšã§ããããšãæãåºãããŠãã ããã
ãã ãã6ãæéã«ããã£ãŠãã®ããŒã«ã¯å®æçã«æŽæ°ããããŠãŒã¶ãŒã®ãã£ãŒãããã¯ãšèŠæã«åºã¥ããŠãæ©èœããµããŒããããŠããèšèªã®ãªã¹ããæ¡åŒµããæ¢åã®æ©èœã絶ããæ¹åããæ1åæŽæ°ããç¶ããŠããŸãã
æ¬æ¥ã¯ãOS XãäŸãšããŠäœ¿çšããVisual Studio Codeã®æ¬¡ã®æ©èœã®æŠèŠã玹ä»ããŸããUnity3DãVisual Studio OnlineãGitHubãšã®çµ±åãããã³Macã§ã®VS Codeã®ã€ã³ã¹ããŒã«ãæ§æãå¿«é©ãªæäœã«é¢ãã詳现ãªãããªè³æã§ãã
ã³ã³ãã¥ãŒã¿ãŒã«Visual Studio Codeãã€ã³ã¹ããŒã«ããã«ã¯ãå ¬åŒãµã€ãcode.visualstudio.comããé åžããããããŠã³ããŒãããå¿ èŠããããŸãã
çŸåšãµããŒããããŠããèšèªã®å®å šãªãªã¹ãïŒ
Node.jsã䜿çšããŠJavaScriptãŸãã¯TypeScriptã¢ããªã±ãŒã·ã§ã³ãå®è¡ããå ŽåãVisual Studio Codeã¯ãããã¬ãŒããµããŒãããŸãã
ãããã¬ã¯ãMonoã§å®è¡ãããã¢ããªã±ãŒã·ã§ã³ã§ããµããŒããããŠããŸãããããã¯ASP.NET 5.0ããã³Unity3Dã¢ããªã±ãŒã·ã§ã³ã§ãã ãããã£ãŠãVS Codeã§ã¯ãIntelliSenseãµããŒããããããã¬ãŒãŸã§ããã¹ãŠã®æ©èœã«ã¢ã¯ã»ã¹ã§ããææ°ã®Webã¢ããªã±ãŒã·ã§ã³ãéçºã§ããŸãã
ããŒãžã§ã³ç®¡çã·ã¹ãã
Gitçµ±å
Visual Studio Codeã¯ãããŒã«ã«ããã³ãªã¢ãŒãã®GitãªããžããªããµããŒãããŠããŸãã GitãŠãŒãã£ãªãã£ãã€ã³ã¹ããŒã«ããããVisual Studio Codeãåèµ·åããŠãçŸåšã®ã¯ãŒã¯ã¹ããŒã¹ã®Gitãåæåããå¿ èŠããããŸãã
ããããã¯ãGitãããŒã«ã«ã§äœ¿çšã§ããŸãã GitãŠã£ã³ããŠã«åãæ¿ãããšãå€æŽããããã¹ãŠã®ãã¡ã€ã«ã衚瀺ããããã®å 容ã以åã®ããŒãžã§ã³ãšæ¯èŒã§ããŸãã
VS Codeã§ã¯ãããŸããŸãªãããžã§ã¯ããã©ã³ãã§äœæ¥ããããšãã§ããŸãã
Visual Studio Online
Gitãã©ãããã©ãŒã ãå®å šã«äœ¿çšããã«ã¯ããµãŒãããŒãã£ã®ãããã€ããŒãå¿ èŠã«ãªãå ŽåããããŸãã ãã®èšäºã§ã¯ãGitHubãšVisual Studio Onlineã«ã€ããŠèª¬æããŸãã ãªãŒãã³ãœãŒã¹ãããžã§ã¯ããå ¬éããå¿ èŠãããå Žåã¯ãGitHubã䜿çšããŸãããã³ãŒããå€éšã«å ¬éããå¿ èŠãããå Žåã¯ããµãã¹ã¯ãªãã·ã§ã³ãè³Œå ¥ããå¿ èŠããããŸãã
Visual Studio Onlineã¯ãªãŒãã³ãœãŒã¹ãããžã§ã¯ãããµããŒãããŠããŸããããã¯ããŒãºããããžã§ã¯ããäœæã§ããŸããããŒã ã5人以äžã®éçºè ã§æ§æãããŠããå ŽåãVisual Studio Onlineã®äœ¿çšã¯ç¡æã§ãã åæã«ãããŒãžã§ã³ç®¡çã·ã¹ãã ã¯Visual Studio Onlineã®æ©èœã®1ã€ã«ãããŸããããã¹ã±ãžã¥ãŒãªã³ã°ãŠãŒãã£ãªãã£ãããã°ããã¯ã€ãããŒããããŒã ã®ä»®æ³ã«ãŒã ãªã©ãä»ã®å€ãã®æ©èœã䜿çšã§ããŸãããããã£ãŠãVS CodeãšVS Onlineã¯ããœãããŠã§ã¢éçºãµã€ã¯ã«ã®å®å šãªãµããŒããæäŸã§ããŸãã
Visual Studio Onlineã§ã®äœæ¥ãéå§ããã«ã¯ãã¢ã«ãŠã³ããç»é²ããå¿ èŠããããŸã ã ãã®åŸãæ°ãããããžã§ã¯ãã®äœæãéå§ã§ããŸãã ãããžã§ã¯ããšã¯ãããã¥ã¡ã³ãããœãªã¥ãŒã·ã§ã³ã«å«ãŸãããã¹ãŠã®ãããžã§ã¯ãã®ãœãŒã¹ã³ãŒããªã©ãä¿åã§ããVisual Studio Onlineå ã§äœæãããã¯ãŒã¯ã¹ããŒã¹å šäœãæããŸãã
ãã¹ãŠã®èšå®ãå®äºããããGitãªããžããªãžã®ãªã³ã¯ãååŸããå¿ èŠããããŸãã ãããè¡ãã«ã¯ãäœæãããããžã§ã¯ãã«ç§»åãã[ã³ãŒã]ã¿ããéããŸããããã§ãªã³ã¯ãã³ããŒã§ããŸãã
GitãXcodeã³ãã³ãã©ã€ã³ãŠãŒãã£ãªãã£ã®äžéšãšããŠã€ã³ã¹ããŒã«ãããå Žåãå¿ èŠãªãã¡ã€ã«ã¯ãã¹ãŠMacã«ãã§ã«ååšããŠããã®ã§ãã³ãã³ãgit config - global credentialãå®è¡ããã ãã§ãã ãã«ã㌠osxkeychain
Github
ãããžã§ã¯ãã®ã¡ã€ã³ããŒãžã«ç§»åããã³ã³ãã³ãã®è€è£œã«äœ¿çšããå¿ èŠããããªã³ã¯ãã³ããŒããŸãã ã¿ãŒããã«ã䜿çšããŠåæåããã»ã¹ãå®äºããŸãã ããã¯ãVS Codeããã³ã³ããã¹ãã¡ãã¥ãŒãŸãã¯ã³ãã³ããã¬ãããŠã£ã³ããŠã䜿çšããŠå®è¡ã§ããŸãã
Visual Studio Onlineãšåæ§ã«ãGitã¯éžæããååã«é¢é£ä»ããããšãã§ããŸãïŒ git config --global user.name xxxxx
ãããŠããããžã§ã¯ããéžæãããã£ã¬ã¯ããªã«ã¯ããŒã³ã§ããŸãïŒ git clone httpsïŒ// github.com/xxxxx/testVSCode.git
ã¯ããŒã³äœæããŒã ã¯ããã£ã¹ã¯äžã«ãã¹ãŠã®ãœãŒã¹ãã¡ã€ã«ãå«ãæ°ãããã£ã¬ã¯ããªãäœæããVS Codeã䜿çšããŠãäœæããããã£ã¬ã¯ããªãéããŸãã
Unity 3D
Unity3Dã¯äººæ°ã®ããã²ãŒã éçºç°å¢ã§ãããOS Xã§ã¯MonoDevelopã¯CïŒã³ãŒããšJavaScriptãç·šéããæ段ãšããŠäœ¿çšãããŸãã CïŒãããžã§ã¯ãã§ããã»ã¹ãå®æŒããŸãã
Unity3Dã䜿çšããŠãæ°ãããããžã§ã¯ããäœæããããCïŒã®ãã¡ã€ã«ãå«ãæ¢åã®ãããžã§ã¯ããéããŸãã æåã«ããããšã¯ãããã©ã«ãã®ãšãã£ã¿ãŒãå€æŽããããšã§ãã ãããè¡ãã«ã¯ã Unity-> Preferencesã®External Toolsã¿ãã§ãããã©ã«ãã§MonoDevelopãå«ãExternal Script EditorããããããŠã³ãªã¹ããèŠã€ããApplicationsãã©ã«ããŒã§Visual Studio CodeãéžæããŸãã
ãã®çŽåŸã«ãã³ãŒãã§ä»»æã®CïŒãã¡ã€ã«ãéãããšãã§ããŸãã ãã¡ã€ã«ã®ã¿ãéããŠãããã³ãŒãã«ã¯ãããžã§ã¯ãã«é¢ããæ å ±ãå«ãŸããŠããªããããå€ãã®æ©èœãç¡å¹ã«ãªã£ãŠããããšã«æ³šæããŠãã ããã
ãããžã§ã¯ããéããŸãããã Unityã®ããŒãžã§ã³ã«ãã£ãŠã¯ããããžã§ã¯ããã¡ã€ã«ãããã©ã«ãã§äœæãããªãå ŽåããããããOpen CïŒProjectã¡ãã¥ãŒé ç®ã䜿çšã§ããŸãã ãã®ã³ãã³ãã®çµæããããžã§ã¯ããã£ã¬ã¯ããªã§slnãã¡ã€ã«ãšcsprojãã¡ã€ã«ãèŠã€ããããšãã§ããŸãã
ãããã®åœ¢åŒã¯Visual Studio Codeã§ãµããŒããããŠããããããã£ã¬ã¯ããªãéãããšãã§ããŸãã
Unityã¯ãããŸããŸãªæ®µéã§ã²ãŒã ããã«ãããããã«äœ¿çšãããããã€ãã®ãããžã§ã¯ãã§åäœããŸããããã®ãã¡ã®1ã€ã ããéãã«ã¯ãã¹ããŒã¿ã¹ããŒã䜿çšããŠãããžã§ã¯ãã®éžæãã¯ãªãã¯ããŸãã
Visual Studio Codeã¯ããããžã§ã¯ããéžæã§ãããããã¢ãããŠã£ã³ããŠã衚瀺ããŸãã ãã®å Žåãcsharpãµãã£ãã¯ã¹ãæã€ãããžã§ã¯ããå¿ èŠã§ãã
Visual Studio Codeã¯ãææ°ããŒãžã§ã³ã®monoãå¿ èŠãšããOmniSharpã³ã³ãã€ã©ãŒã䜿çšããããããšã©ãŒãåé¿ããã«ã¯ãmono-project.comããææ°ããŒãžã§ã³ã®monoãã€ã³ã¹ããŒã«ããŠãã ããããã¹ãŠãã€ã³ã¹ããŒã«ããããVisual Studio Codeãåèµ·åããCïŒãã¡ã€ã«ãå床éãå¿ èŠããããŸãã
ããã§ãIntelliSenseã·ã¹ãã ãæ£åžžã«åäœããã³ãŒãã§åŒãç¶ãäœæ¥ã§ããŸãã
ãããã°
Visual Studio Codeã¯ãnode.jsãããžã§ã¯ãããã³ã¢ãã©ã«ã®ãããžã§ã¯ãã®ãããã°ããµããŒãããŠããŸãã Unityã¯Monoã䜿çšãããããUnityãšVisual Studio Codeãçµ±åããäŸã䜿çšããŠããããã¬ãŒã®æ©èœããã¢ã³ã¹ãã¬ãŒã·ã§ã³ããŸãããã
ã³ãŒãã§ãããã°ãæå¹ã«ããã«ã¯ãlaunch.jsonãã¡ã€ã«ãäœæããããã§ãããã¬ãŒèšå®ãå ¥åããå¿ èŠããããŸãã [ãããã°]ãŠã£ã³ããŠã«ç§»åãã[èšå®]ãã¿ã³ãã¯ãªãã¯ããŠlaunch.jsonã®äœæãæå¹ã«ããŸãã
äœæãããã¡ã€ã«ããnode.jsãæäœããããã®ãã¹ãŠã®ã³ãŒããåé€ãã次ãè¿œå ããŸãã
{ "version":"0.1.0", "configurations":[ { "name":"Unity", "type":"mono", "address":"localhost", "port":56060 } ] }
Unityãã©ã°ã€ã³ã䜿çšããŠããå ŽåãWrite Launch Fileãªãã·ã§ã³ãã€ã³ã¹ããŒã«ãããŠããããšã確èªããå¿ èŠããããŸãã
ãªãã·ã§ã³ãèšå®ãããŠããå ŽåãUnityãã¬ãŒã€ãŒã§ã¢ããªã±ãŒã·ã§ã³ãå®è¡ããå¿ èŠããããlaunch.jsonãèªåçã«äœæãããŸãã
ãããã¬ãŒãéå§ããã«ã¯ã[ãããã°]ãŠã£ã³ããŠã«ç§»åãã[éå§]ãã¯ãªãã¯ããŸãã ãã®çŽåŸã«ãUnityã«ç§»åããŠãã¬ãŒã€ãŒã§ã²ãŒã ãéå§ã§ããŸãã ãã¹ãŠãé 調ã§ããã°ããããã¬ãæ©èœããŠããããšãããããŸãã
ãããã¬ãŒã«ã¯ããããã§ãã·ã§ãã«ããŒã«ã«åºæã®å¿ èŠãªãã¹ãŠã®å±æ§ããããŸãïŒãã¬ãŒã¯ãã€ã³ããã³ãŒã«ã¹ã¿ãã¯ããŠã©ãããå€æ°ããããã°ã¢ã¯ã·ã§ã³ããã«ããããã°ã³ã³ãœãŒã«ã
ã¿ã¹ã¯
Visual Studio Codeã®ã³ã³ããã¹ãã§ã¯ãä»»æã®ã³ãã³ãã©ã€ã³ã³ãã³ããå®è¡ããéçºç°å¢ããçŽæ¥çµæã衚瀺ã§ããŸãã ãããã£ãŠãå€éšã³ã³ãã€ã©ããããã¬ããã¹ãããŒã«ãªã©ã䜿çšã§ããŸãã
ã³ãã³ããã¬ãããéããŠ[ã¿ã¹ã¯ã®å®è¡]ãå ¥åãããšãã³ãŒããgruntã®æ§æãã¡ã€ã«å ã®ãã¹ãŠã®ã¿ã¹ã¯ãèªèããéå§ã§ããããšãããããŸãã ã¿ã¹ã¯ã®çµæãšããŠãã¢ã«ãŽãªãºã ã«åŸã£ãŠå€æããããã¹ãŠã®ãœãŒã¹ã³ãŒããå«ãæ°ããJavaScriptãã¡ã€ã«ãèŠãããšãã§ããŸãã åæã«ãçµæãåºåãŠã£ã³ããŠã«è¡šç€ºãããåé¡ãæéå ã«æ€åºã§ããŸãã
Visual Studio Codeã¯ãåºåãŠã£ã³ããŠããã®ããŒã¿ãåŠçããããããšã©ãŒãªã¹ãã«è¡šç€ºããããã©ãŒããããããã¡ãã»ãŒãžã«å€æã§ããç¹å¥ãªæ¡åŒµæ©èœããµããŒãããŠããŸãã
玺Azure
Visual Studio CodeãšAzureã®çŽæ¥çµ±åã¯æäŸãããŠããŸããã ãã ããWebãµã€ããã³ãŒãããAzureã«ç°¡åã«ãããã€ã§ããæ¹æ³ããããŸãã
ãããè¡ãã«ã¯ãAzureã¢ã«ãŠã³ããäœæããã³ã³ãããŒã«ããã«ãéããWebã¢ããªãã³ãã¬ãŒãã䜿çšããŠæ°ããWebã¢ããªã±ãŒã·ã§ã³ãäœæããå¿ èŠããããŸããããã«ãããæ°ç§ä»¥å ã«å°æ¥ã®ãµã€ãã®ãã¹ãã£ã³ã°ã¹ããŒã¹ãäœæããŠããã«é 眮ã§ããŸãã
ã€ã³ãã©ã¹ãã©ã¯ãã£ãäœæãããããèšå®ã«ç§»åã§ããŸãã ãã®ã·ããªãªã§ã¯- ç¶ç¶çãªå±é ïŒ
ãããããAzureãããŸããŸãªçš®é¡ã®ã¹ãã¬ãŒãžãããœãªã¥ãŒã·ã§ã³ãå±éããæ©èœããµããŒãããŠããããšã¯æããã§ãã åè¿°ã®GitHubããã³Visual Studio Onlineãªããžããªãšã®çµ±åã«ãããã³ãŒããšAzureããªã³ã¯ã§ããŸãã ãããã£ãŠãVisual Studioã®ã³ãŒããšãã£ã¿ãŒã€ã³ã¿ãŒãã§ã€ã¹ããçŽæ¥ãªã¢ãŒãã³ãŒãã®å±éãå®è¡ãç¶ããããšãã§ããŸãã
ãããã«
Visual Studio Codeã䜿çšãããšãããŸããŸãªã·ããªãªãå®è£ ã§ããéåžžã®ã³ãŒããšãã£ã¿ãŒã«ãšã©ãŸããŸããã 説æãããŠããã·ããªãªã¯ãå ¬åŒããã¥ã¡ã³ãããŒãžã§è©³çŽ°ã«èª¬æãããŠããå¯èœãªã·ããªãªã®äžéšã®ã¿ãã«ããŒããŠããŸãã
ãŸããMacã§Visual Studio CodeããŒã«ãã€ã³ã¹ããŒã«ãæ§æãæäœããããã®æ®µéçãªæé ãå«ãã ãããªè³æãå ±æã§ããŸãã
JavaScriptãTypeScriptãASP.NETã®æäœãå«ãäžé£ã®ãããªã®æ瀺ã§ãããã®åã·ããªãªã詳现ã«èª¬æãããã«ã³ãŒã¹ãžã®ãªã³ã¯ ã
䟿å©ãªãªã³ã¯
- Channel9ããŒã¿ã«ïŒ Macéçºè åãã®Visual Studioã³ãŒã
- Visual Studio Code Webãµã€ãhttp://code.visualstudio.com
- VSã³ãŒãéçºããŒã ã®ããã°http://blogs.msdn.com/b/vscode/
- Twitter https://twitter.com/code
- User Voiceã§ã®VSã³ãŒãæ©èœã®ãªã¯ãšã¹ãhttps://visualstudio.uservoice.com/forums/293070-visual-studio-code