» www.Giftbox.Az - Bir birindən gözəl hədiyyə satışı
ウィキペディアランダム
毎日カテゴリ
共有: WhatsappFacebookTwitterVK

Visual Studio Code

Visual Studio Code(VS Code)Microsoftが開発しているWindowsLinuxmacOSweb用のソースコードエディタである[6]。とはいえ実質IDEである。Electronをベースにしており、デバッグ、埋め込みGitコントロールとGitHub連携、シンタックスハイライト、インテリジェントなコード補完スニペット、コードリファクタリングのサポートが含まれる。カスタマイズ性が高く、テーマやキーボードショートカット、環境設定を変更できたり、機能を追加する拡張機能をインストールすることができる。ソースコードはフリーかつオープンソースで、寛容なMITライセンスの下でリリースされている[7]。コンパイルされたバイナリはプロプライエタリソフトウェアである[8]

Visual Studio Code
Windows 7上で動作するVisual Studio Code 0.10.1、検索機能により「function」を検索中
開発元 マイクロソフト
初版 2015年4月29日 (8年前) (2015-04-29)
最新版
1.78.2[1]  / 12 5月 2023
最新評価版
1.79-insiders[2]  / 4 5月 2023
リポジトリ
  • github.com/microsoft/vscode
プログラミング
言語
対応OS
プラットフォーム
対応言語 [3]
サポート状況 開発中
種別 ソースコードエディタデバッガ
ライセンス
  • Visual Studio Code: (マイクロソフト ソフトウェア ライセンス条項)[4]
  • vscode: MIT License[5]
公式サイト
  • code.visualstudio.com
  • Web版:vscode.dev
(テンプレートを表示)

Stack Overflow 2019 Developer Surveyでは、Visual Studio Codeが最も人気のある開発者環境ツールとしてランクインし、87,317人の回答者のうち50.7%が使用していると回答した[9]

歴史

Visual Studio Codeは、マイクロソフトの開発者会議Build 2015(2015年4月29日)にて公開され、プレビュー版がリリースされた[10]

2015年11月18日、Visual Studio Codeはリリースされ、その一部ソースコードGitHubMIT Licenseのもとで公開された。その際、拡張機能のサポートも追加された[11]

機能

Visual Studio Codeのソースコードエディタの機能は、以下の一覧に示されるように、プログラミング言語ごとにサポートの有無が異なっている。プラグインによって他の言語もサポートできる[12]

Visual Studio Codeの機能の多くはメニューユーザーインタフェースを通して公開されていない。代わりに、コマンドパレット(例: スニペットの挿入)あるいは.json設定ファイル(例: ショートカットキーの設定)を経由してアクセスする。コマンドパレットはキャラクタユーザインタフェースの一種である。

ディレクトリを開くことで、そのディレクトリに含まれる複数のファイルがツリー状に表示される。開いたファイルはタブにも表示され、タブを切り替えながら複数のファイルを並行して編集できる。ただしWeb版の場合、Google ChromeMicrosoft Edgeなど一部のChromium系ブラウザでしかディレクトリを開くことはできない。これは、Visual Studio CodeがFile System Access APIというAPIを使用してディレクトリを操作するためである[13]

また、テキストエディタの基本的な機能として、文書の保存時にコードページを変更したり、改行コードを統一することもできる。対応する括弧の表示、複数カーソル、矩形選択、ブロック単位の選択拡張と折り畳み、Gitリポジトリと比較しての変更行の表示などの機能を持つ[14]

その他に、ウィンドウ内で統合された端末を開くことや、ウェブ上に公開された機能拡張ダウンロードしインストールすることもできる。

リモート開発

Microsoftが提供する拡張機能パック「(Remote Development)[※ 1]」(2020-02-26現在Preview版)を導入することで、リモート環境での開発が可能になる。対応するリモート環境は以下の3つである[15]

コンテナ

拡張機能「Visual Studio Code Remote - Containers」を利用することでDockerコンテナ内での開発(developing inside a container)が可能になる[16]

Docker Desktop 2.0+ あるいはDocker CE/EE 18.06+がインストールされたホストマシンからコンテナ内の開発環境を操作できる。ホストマシンにプログラミング言語実行環境をインストールしなくてもコンテナ内でコーディング支援・デバッグ等が利用可能になる。

コンテナを利用する場合、いくつかの方法が存在する。そのうちの1つはGitレポジトリから直接コンテナを生成する方法である。開発環境コンテナとしての設定がdevcontainer.jsonに述されたGitレポジトリは、VS Code上で明示的なClone無しにコンテナ化が可能である[17]。この「Repositoryコンテナ」生成時にはGitレポジトリがDockerのVolumesへ保存される[18](bind mountsではない。参考: Docker--永続化)。

この機能はコンテナ内に VS Code Server を建てることで実現されている[19]。ローカルでVS Codeを実行するのと同様にコンテナ内でVS Code(Server)が立ち上がっており(/root/.vscode-server)、クライアント(ローカル)側でおこなったVS Code UI操作をコンテナへ送信することで透過的にコンテナ内開発を行うことができる。

評価

2016年のStack Overflowによる調査では、Visual Studio Codeは、13番目に人気のある開発ツールで、46613人のうち、7.2%がこれを使っていた[20]。しかしながら、2019年の調査では、Visual Studio Codeは1位に位置し、87317人の回答者のうち、50.7%がこれを使っていた[21]2021年の調査でも、82,277人の回答者の71.06%が利用していると答え、1位であった[22]

Visual Studio Codeは、JavaJavaScriptGoNode.js、など様々な領域でフレキシブルに利用可能である[23]

マイクロソフトによるデータの収集

Visual Studio Codeは、"Code - OSS"レポジトリの配布物にマイクロソフト独自のカスタマイズを施し、伝統的なマイクロソフトの製品ライセンスの下でリリースされている[24]。Visual Studio Codeは、使用状況に関するデータを集め、これをマイクロソフトに送っている。しかしながら、このテレメタリー・レポーティングは無効にすることができる[25]

VSCodiumは、もうひとつのこのソフトウェアのバイナリディストリビューションであり、これはオープンソースの部分のみを使い、マイクロソフトの商標やテレメタリーコンポーネントはオミットされている。しかし、他の面においては完全に機能し、互換性がある[26]

関連項目

注釈

  1. ^ Remote Development - Visual Studio Marketplace

出典

  1. ^ “April 2023 Recovery 2”. 15 5月 2023閲覧。
  2. ^ https://community.chocolatey.org/packages/vscode-insiders/1.79.0.20230504; 閲覧日: 8 5月 2023.
  3. ^ “Display Language (Locale)”. 2018年11月30日閲覧。
  4. ^ “マイクロソフト ソフトウェア ライセンス条項”. 2017年7月1日閲覧。
  5. ^ “LICENSE.txt”. github.com/Microsoft/vscode. マイクロソフト (2015年11月17日). 2016年3月24日閲覧。
  6. ^ Lardinois, Frederic (2015年4月29日). “Microsoft Launches Visual Studio Code, A Free Cross-Platform Code Editor For OS X, Linux And Windows”. TechCrunch. https://techcrunch.com/2015/04/29/microsoft-shocks-the-world-with-visual-studio-code-a-free-code-editor-for-os-x-linux-and-windows 
  7. ^ Comment on Menu license links to non Open Source license, VS Code Repository on Github
  8. ^ VS Code FAQ, VS Code, "VS Code is free for private or commercial use."
  9. ^ “Developer Survey Results 2019 - Most Popular Development Environments”. (StackOverflow) Insights. Stack Exchange. 2019年4月10日閲覧。
  10. ^ Montgomery, John (2015年4月29日). “BUILD 2015 News: Visual Studio Code, Visual Studio 2015 RC, Team Foundation Server 2015 RC, Visual Studio 2013 Update 5”. 2016年3月24日閲覧。
  11. ^ “Visual Studio now supports debugging Linux apps; Code editor now open source”. Ars Technica. http://arstechnica.com/information-technology/2015/11/visual-studio-now-supports-debugging-linux-apps-code-editor-now-open-source/ 2015年11月18日閲覧。 
  12. ^ a b “Language Support in Visual Studio Code”. マイクロソフト. 2016年3月24日閲覧。
  13. ^ “Microsoftがブラウザで動作するVisual Studio CodeのVSCode.Devをローンチ”. InfoQ. 2023年2月18日閲覧。
  14. ^ “Editing Evolved”. 2016年5月13日閲覧。
  15. ^ Visual Studio Code Remote Development allows you to use a container, remote machine, or the Windows Subsystem for Linux (WSL) as a full-featured development environment. [1]
  16. ^ The Visual Studio Code Remote - Containers extension lets you use a Docker container as a full-featured development environment. Visual Studio Container - Developing inside a Container
  17. ^ You can now work with the repository source code in this isolated environment as you would if you had cloned the code locally. [2]
  18. ^ Repository Containers use isolated, local Docker volumes instead binding to the local filesystem. [3]
  19. ^ (in figure) Remote OS VS Code Server Visual Studio Code - VS Code Remote Development
  20. ^ “Developer Survey Results 2016”. Stack Overflow Insights. Stack Exchange. 2018年4月7日閲覧。
  21. ^ “Developer Survey Results 2019 - Most Popular Development Environments”. (StackOverflow) Insights. Stack Exchange. 2019年4月10日閲覧。
  22. ^ “Stack Overflow Developer Survey 2021 - Integrated Development Environment”. 2022年1月3日閲覧。
  23. ^ Visual Studio Code: A fast, lightweight, cross-platform code editor
  24. ^ https://code.visualstudio.com/docs/supporting/faq#_what-is-the-difference-between-the-vscode-repository-and-the-microsoft-visual-studio-code-distribution
  25. ^ “”. code.visualstudio.com. Microsoft. 2016年8月28日時点のオリジナルよりアーカイブ。2016年11月4日閲覧。 “VS Code collects usage data and sends it to Microsoft to help improve our products and services. Read our privacy statement to learn more. If you don’t wish to send usage data to Microsoft, you can set the telemetry.enableTelemetry setting to false.”
  26. ^ binary releases of VS Code without MS branding/telemetry/licensing: VSCodium/vscodium, VSCodium, (2019-03-17), https://github.com/VSCodium/vscodium 2019年3月18日閲覧。 

外部リンク

  • Visual Studio Code - Code Editing. Redefined 公式ウェブサイト(英語)
  • vscode - GitHub
  • Visual Studio Code (@code) - Twitter
  • Visual Studio Code - YouTubeチャンネル
ウィキペディア、ウィキ、本、library、論文、読んだ、ダウンロード、自由、無料ダウンロード、mp3、video、mp4、3gp、 jpg、jpeg、gif、png、画像、音楽、歌、映画、本、ゲーム、ゲーム。