Command | Description |
---|---|
dotnet --info |
Version of SDK |
dotnet new list |
Scaffoldings |
dotnet new gitignore |
Add gitignore |
dotnet new console -f net7.0 --name "TestUI" |
Create a console app |
dotnet new classlib -f net7.0 --name "HelperLib" |
Create a library |
dotnet add TestUI/TestUI.csproj reference HelperLib/HelperLib.csproj |
Add reference |
dotnet add package Dapper |
Add package |
Command | Description |
---|---|
git clean -xdf |
Remove all files unversioned |
https://github.com/microsoft/MSBuildSdks/tree/main/src/Traversal
Command | Description |
---|---|
ctrl + e or ctrl + p |
Go to file |
ctrl + shift + p |
.net Generate Assets for Build and Debug: Update file launch: integratedTerminal and stopAtEntry |
ctrl + e or ctrl + p |
Find file |
ctrl + h |
Replace |
ctrl + alt + enter |
Replace all |
ctrl + g |
Go to line |
shit + alt + F |
Format document |
ctrl + T |
Focus on terminal view (see.) |
ctrl + 1 |
Focus first editor group |
ctrl + n |
New untitled file |
ctrl + K M |
Change language mode |
ctrl + P arrow up |
Toggle maximized panel (see.) |
ctrl + shift + 5 |
Terminal: Split terminal |