Home>Article>Development Tools> How to use vscode to debug and run c# programs

How to use vscode to debug and run c# programs

Michael Jordan
Michael Jordan Original
2020-01-09 13:10:18 10530browse

How to use vscode to debug and run c# programs

1. First create a project folder, for example: c#vscode test

2. Open this folder in vscode: shortcut key: ctrl k ctrl o

How to use vscode to debug and run c# programs

3. Use the shortcut key ctrl shift y to open the console and enter the terminal

How to use vscode to debug and run c# programs

4. Then Enter the following command to restore

dotnet new console

How to use vscode to debug and run c# programs

5. Press [F5] and select [.NET Core] environment to run

How to use vscode to debug and run c# programs

6. Select yes to close the warning

How to use vscode to debug and run c# programs

7. After setting, press [F5] again to run. The result is as shown in the figure:

How to use vscode to debug and run c# programs

Recommended related articles and tutorials:vscode tutorial

The above is the detailed content of How to use vscode to debug and run c# programs. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn