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