Skip to content
| Marketplace
Sign in
Visual Studio Code>Snippets>NestJS Swagger Snippets for VSCode EditorNew to Visual Studio Code? Get it now.
NestJS Swagger Snippets for VSCode Editor

NestJS Swagger Snippets for VSCode Editor

Manuel Gil

|
7,608 installs
| (0) | Free
| Sponsor
This extension for Visual Studio Code adds snippets for Swagger for NestJS.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Swagger Snippets for VSCode Editor

Visual Studio Marketplace Version Visual Studio Marketplace Installs Visual Studio Marketplace Downloads Visual Studio Marketplace Rating GitHub Repo stars GitHub license

This extension for Visual Studio Code adds snippets for Swagger. Now you can create your Swagger files faster and easier.

Requirements

  • VSCode 1.46.0 or later

Usage

Snippets

Type part of snippet, press Tab or Enter, and the snippet unfolds. Below is a list of the most important shortcuts.

Snippet Purpose
ns_swagger_deco_api_basic_auth @ApiBasicAuth
ns_swagger_deco_api_bearer_auth @ApiBearerAuth
ns_swagger_deco_api_body @ApiBody
ns_swagger_deco_api_consumes @ApiConsumes
ns_swagger_deco_api_cookie_auth @ApiCookieAuth
ns_swagger_deco_api_exclude_controller @ApiExcludeController
ns_swagger_deco_api_exclude_endpoint @ApiExcludeEndpoint
ns_swagger_deco_api_extension @ApiExtension
ns_swagger_deco_api_extra_models @ApiExtraModels
ns_swagger_deco_api_header @ApiHeader
ns_swagger_deco_api_hide_property @ApiHideProperty
ns_swagger_deco_api_oauth2 @ApiOAuth2
ns_swagger_deco_api_operation @ApiOperation
ns_swagger_deco_api_param @ApiParam
ns_swagger_deco_api_produces @ApiProduces
ns_swagger_deco_api_property @ApiProperty
ns_swagger_deco_api_property_optional @ApiPropertyOptional
ns_swagger_deco_api_response_property @ApiResponseProperty
ns_swagger_deco_api_query @ApiQuery
ns_swagger_deco_api_security @ApiSecurity
ns_swagger_deco_api_tags @ApiTags
ns_swagger_deco_api_ok_response @ApiOkResponse
ns_swagger_deco_api_created_response @ApiCreatedResponse
ns_swagger_deco_api_accepted_response @ApiAcceptedResponse
ns_swagger_deco_api_no_content_response @ApiNoContentResponse
ns_swagger_deco_api_moved_permanently_response @ApiMovedPermanentlyResponse
ns_swagger_deco_api_found_response @ApiFoundResponse
ns_swagger_deco_api_bad_request_response @ApiBadRequestResponse
ns_swagger_deco_api_unauthorized_response @ApiUnauthorizedResponse
ns_swagger_deco_api_too_many_requests_response @ApiTooManyRequestsResponse
ns_swagger_deco_api_not_found_response @ApiNotFoundResponse
ns_swagger_deco_api_internal_server_error_response @ApiInternalServerErrorResponse
ns_swagger_deco_api_bad_gateway_response @ApiBadGatewayResponse
ns_swagger_deco_api_conflict_response @ApiConflictResponse
ns_swagger_deco_api_forbidden_response @ApiForbiddenResponse
ns_swagger_deco_api_gateway_timeout_response @ApiGatewayTimeoutResponse
ns_swagger_deco_api_gone_response @ApiGoneResponse
ns_swagger_deco_api_method_not_allowed_response @ApiMethodNotAllowedResponse
ns_swagger_deco_api_not_acceptable_response @ApiNotAcceptableResponse
ns_swagger_deco_api_not_implemented_response @ApiNotImplementedResponse
ns_swagger_deco_api_precondition_failed_response @ApiPreconditionFailedResponse
ns_swagger_deco_api_payload_too_large_response @ApiPayloadTooLargeResponse
ns_swagger_deco_api_request_timeout_response @ApiRequestTimeoutResponse
ns_swagger_deco_api_service_unavailable_response @ApiServiceUnavailableResponse
ns_swagger_deco_api_unprocessable_entity_response @ApiUnprocessableEntityResponse
ns_swagger_deco_api_unsupported_media_type_response @ApiUnsupportedMediaTypeResponse
ns_swagger_deco_api_default_response @ApiDefaultResponse
ns_swagger_set_title setTitle
ns_swagger_set_description setDescription
ns_swagger_set_version setVersion
ns_swagger_set_terms_of_service setTermsOfService
ns_swagger_set_contact setContact
ns_swagger_set_license setLicense
ns_swagger_add_server addServer
ns_swagger_set_external_doc setExternalDoc
ns_swagger_set_base_path setBasePath
ns_swagger_add_tag addTag
ns_swagger_add_extension addExtension
ns_swagger_add_security addSecurity
ns_swagger_add_global_parameters addGlobalParameters
ns_swagger_add_security_requirements addSecurityRequirements
ns_swagger_add_bearer_auth addBearerAuth
ns_swagger_add_oauth2 addOAuth2
ns_swagger_add_api_key addApiKey
ns_swagger_add_basic_auth addBasicAuth
ns_swagger_add_cookie_auth addCookieAuth
ns_swagger_build build

Connect with me

GitHub followers X (formerly Twitter) Follow

Other Extensions

  • NestJS File Generator
  • NestJS Snippets
  • Angular File Generator
  • T3 Stack / NextJS / ReactJS File Generator
  • CodeIgniter 4 Snippets
  • CodeIgniter 4 Shield Snippets
  • CodeIgniter 4 Spark
  • Moodle Pack
  • Mustache Template Engine - Snippets & Autocomplete

Changelog

See CHANGELOG.md

Authors

  • Manuel Gil - Owner - ManuelGil

See also the list of contributors who participated in this project.

License

Swagger Snippets for VSCode is licensed under the MIT License - see the MIT License for details.

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft