Run your c# code inside VSCode terminal.
You will need dotnet framework to run your C# code. You can download & install it from here.
Open your .bashrc/.zshrc file. This file will be located in your root directory. Now copy-paste the following code inside there.
# run your c# code inside your terminal
function run() {
dotnet restore && clear && dotnet run
}Now go to your project & open your terminal. Make sure your terminal path is set to your project's path.
Now you can run your C# code anytime with the following command inside VSCode terminal or any other terminal whatsoever.
run🚀 Aspiring JavaScript developer. 🐼 An MLH ’20 fellow, 👨🏻💻 Jr. Dev Advocate @Worwox, 💥 an open-sourcer (authored several open-source tools), 🦉open-source contributor (contributed to the likes of Node.js, Fluid Project, Global Public Inclusive Infrastructure), 🙌 former Google’s Developer Student Clubs Lead, 💻 Beta – Microsoft Learn Student Ambassador, ✍️ Technical Writer, 🗣 Speaker, and 🎸 a Guitarist.
- MIT