Home > Development Tools > VSCode > body text

How to use vscode to debug and run c# programs

王林
Release: 2020-01-09 13:10:18
Original
10610 people have browsed it

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
Copy after login

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!

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template