msaaddev / csharp-runner

πŸš€ Run C# code in VSCode

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

πŸš€ C# Runner

Run your c# code inside VSCode terminal.

↓ STEP #1

You will need dotnet framework to run your C# code. You can download & install it from here.

πŸ‘¨πŸ»β€πŸ’» STEP #2

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
}

πŸ’₯ STEP #3

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

πŸ‘» AUTHOR

πŸš€ 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.

πŸ”‘ LICENSE

  • MIT

About

πŸš€ Run C# code in VSCode

License:MIT License


Languages

Language:Shell 100.0%