Giter Site home page Giter Site logo

quoctuancqt / netcore-extension-pack Goto Github PK

View Code? Open in Web Editor NEW

This project forked from doggy8088/netcore-extension-pack

0.0 1.0 0.0 89 KB

Awesome .NET Core extensions for VSCode

Home Page: https://marketplace.visualstudio.com/items?itemName=doggy8088.netcore-extension-pack

License: MIT License

netcore-extension-pack's Introduction

.NET Core Extension Pack

This extension pack packages some of the most popular (and some of my favorite) .NET Core related extensions. If you like it, please leave your Rating & Review and share with your friends. If you have any idea on how to improve this extension pack, I'm looking forwarded to hear from you. Just let me know your awesome ideas! ๐Ÿ˜Š

Extensions Included

C# Productivity

  • C#
    • The main C# extension for Visual Studio Code powered by OmniSharp.
  • C# Namespace Autocompletion
    • Use the namespace-fill snippet to insert full namespace autocompletion for C#
  • C# Extensions
    • The Quick Actions is really a productivity saver.
    • Explorer
      • New C# Class
      • New C# Interface
      • New C# Enum
      • New C# Controller
      • New C# Api Controller
      • New C# Razor Page
  • C# XML Documentation Comments
    • Type "///", it auto-generates an XML doucumentation comment.
  • Better Comments
    • It will highlight important comments in your code.
    • // * hightlight information
    • // ! hightlight important stuff
    • // ? hightlight some questions
    • // TODO: highlight TODOs
    • // @param PARAM highlight parameter info
  • Paste JSON as Code (Refresh)
    • quicktype infers types from sample JSON data, then outputs strongly typed models and serializers for working with that data in your desired programming language. For more explanation, read A first look at quicktype.
    • It supports C#, Go, C++, Java, TypeScript, Swift, Elm, and JSON Schema. I have to say THIS IS AWESOME! Just try it.
  • C# to TypeScript
    • Convert C# Models, ViewModels and DTOs into their TypeScript equivalents.
    • Useful keyboard shortcuts:
      • Alt + / - Run C# to TypeScript (To Clipboard) command
      • Alt + . - Run C# to TypeScript (Paste As) command
  • TODO Highlight
    • This can let you list all the // TODO: comments in the project. Neats!

Testing Tools

NuGet & Build Tools

  • NuGet Package Manager
    • It lets you easily add or remove NuGet package references to/from your project's .csproj or .fsproj files using Code's Command Palette.
  • MSBuild project tools
    • It provides MSBuild language service which contains intellisense for MSBuild project files, including auto-complete for <PackageReference> elements.
  • .NET Core Tools
    • Right click on a .csproj, .fsproj or .sln file in the explorer, then you can run .NET Core commands (Build/Run/Test) from context menu.
  • Path Intellisense
    • This provide you IntelliSense when entering <ProjectReference Inlcude="..." /> path.
  • Version Lens
    • Shows the latest version for each package using code lens.

.NET Core Productivity

  • NuGet Gallery
    • It makes installing and uninstalling NuGet packages much easier just like Vsual Studio!
    • Use F1 > NuGet: Open NuGet Gallery command to open NuGet Gallery window.
  • .NET Core User Secrets
    • Extension mimicking Visual Studio's "Manage User Secrets" functionality.
    • Right-click on a .csproj file in the Explorer and select "Manage User Secrets" from the context menu to insert auto-generated UserSecretsId element and/or open associated secrets.json file.
  • .NET Core Add Reference
    • Add or remove project references for your .NET Core projects.
    • Right-click on a .csproj file in the Explorer and select "Add Reference" from the context menu.
    • You can Add or Remove project references by using the same "Add Reference" from the context menu.
  • vscode-proto3
    • Protobuf 3 support for Visual Studio Code
  • Run Terminal Command
    • Run predefined terminal commands from Explorer context menu or Command Palette.

ASP.NET Core Productivity

  • Essential ASP.NET Core Snippets
    • High quality ASP.NET Core snippets for Visual Studio Code.
    • It contains C#, ASP.NET Core, Razor, JSON (appsettings.json), EF Core, SignalR, gRPC snippets.
    • Most of the snippets are context-aware. The snippet suggestion only show up when filename pattern match.
    • Here are some of the most used snippets:
      • **/Startup*.cs
        • services-add-dbcontext: Generates AddDbContext() in Startup.ConfigureService()
      • **/*Controller.cs
        • api-controller: Generates API Controller class
        • mvc-action: Generates MVC Action
        • api-action: Generates API Action
      • **/*Context.cs or **/*Entities.cs
        • ef-dbcontext: Generates API Controller class
      • **/appsettings*.json
        • connstr: Generates ConnectionStrings section in appsettings.json
        • connstr-ip: Generates ConnectionStrings item in appsettings.json
        • connstr-trusted: Generates ConnectionStrings item in appsettings.json
  • ASP.NET Core Switcher
    • Switch between Page and it's PageModel (alt + o)
    • Switch between View and Controller (alt + i)
    • Create View for Action (alt + p)
  • LibMan Tools
    • Basic LibMan support for VSCode
  • Blazor Snippet Pack
    • A snippet pack for Blazor.

Misc

  • gitignore
    • It providing Language support for .gitignore files.
    • It can also add local .gitignore by pulling file from the the github/gitignore repository.
  • EditorConfig for VS Code
    • EditorConfig Support for Visual Studio Code
  • .NET Core EditorConfig Generator
    • The Generate .editorconfig for C# project command can generate a Roslyn-inspired .editorconfig file just for any C# projects.
  • Peek Hidden Files
    • Toggle visibility of excluded files. You can easily toggle hidden bin and obj folders in your project.

Some other extensions you may need (Optional)

Recommended Settings

  • Visual Studio Code

    Disable renderCharacters feature in minimap can improve display performance.

    {
      "editor.minimap.renderCharacters": false
    }
  • C#

    The C# extension for VS Code supports .editorconfig and CodeStyle analysis. (#648)

    {
      "omnisharp.enableRoslynAnalyzers": true
    }
  • TODO Highlight

    Add **/*.cs into todohighlight.include setting.

    {
      "todohighlight.include": [
        "**/*.js",
        "**/*.jsx",
        "**/*.ts",
        "**/*.tsx",
        "**/*.html",
        "**/*.php",
        "**/*.css",
        "**/*.scss",
        "**/*.cs"
      ]
    }
  • MSBuild project tools

    If you'd like to configure all the *.csproj file that associate with MSBuild language mode. You can use the following user settings in your VSCode.

    "files.associations": {
      "*.csproj": "msbuild"
    }

Enjoy!

netcore-extension-pack's People

Contributors

doggy8088 avatar sandy081 avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.