Developer Docs

C#Bot IDE Setup - Visual Studio Code (Mac, Windows and Linux)

This guide will walk you through the process of setting up and using Visual Studio Code to work with a C#Bot application.

Required Articles

Setup VS Code

  1. Download and install the latest version of visual studio code for your OS from the Visual Studio website, and install according to the setup instructions.
  2. Once the installation completes, open VS Code and install the following plugins by pressing Ctrl+P (or Cmd+P on Mac) to open the command palette and copying and pasting the following install commands in, one by one.

    1. C# for Visual Studio Code - ext install ms-vscode.csharp
    2. Debugger for Chrome ext install msjsdiag.debugger-for-chrome

    vscode-1570749605964.gif

  3. Reload your VS Code instance by pressing Ctrl+Shift+P or (or Cmd+Shift+P on mac) and searching for Reload Window

    vscode-1570749894002.gif

Source Code

We assumed that by this point you have cloned your project somewhere on your file system.

  1. Use Ctrl+o (or Cmd+o on Mac) and Navigate to the root of your project before clicking ok.

    openedproject.jpg
  2. Save it as a workspace. Ctrl+Shift+p (or Cmd+Shift+p on Mac) to open the command palette and type “Workspace: Save Workspace as…” and select the item that matches

    csharp-reference-1570751553985.gif

  3. Enter your workspace name i.e. example_app.

Launching and debugging

  1. Setup your launch.json file.

csharp-reference-1570755689870.gif

  1. Launch your application.
  1. You can now place break points and debug as usual

csharp-reference-1570757073723.gif