Skip to content

AlexXuChen/vscode-quarkus

 
 

Repository files navigation

Quarkus Tools for Visual Studio Code

Visual Studio Marketplace Installs Build Status License

Description

This Visual Studio Code extension provides support for :

Quarkus VS Code Commands

The following commands are supported for both Maven and Gradle Quarkus projects:

  • Quarkus: Generate a Quarkus project: Generate a Quarkus project, based on https://code.quarkus.io/
  • Quarkus: Add extensions to current project: Add Quarkus extensions to currently opened Quarkus project
  • Quarkus: Debug current Quarkus project: Launches the Maven quarkus:dev plugin or the Gradle quarkusDev command and automatically attaches a debugger
  • Quarkus: Build executable: Launches Maven or Gradle with the correct arguments to build an executable of the application (requires GraalVM or Mandrel to be configured)
  • Quarkus: Deploy current Quarkus project to OpenShift (odo): Deploys the current project to a connected OpenShift cluster using OpenShift Connector

Quarkus/MicroProfile properties Features

In application.properties and microprofile-config.properties files, you will benefit with:

  • Completion support for Quarkus/MicroProfile properties
  • Hover support for Quarkus/MicroProfile properties
  • Definition support for Quarkus/MicroProfile properties
  • Format support for Quarkus/MicroProfile properties
  • Validation and Quick Fix support for Quarkus/MicroProfile properties
  • Support for Quarkus profiles
  • Outline support (flat or tree view)
  • Code snippets:
    • qds - Configure a Quarkus datasource
    • qj - Configure a Jaeger tracer

Quarkus yaml Features

In application.yaml and application.yml files, you will benefit with:

  • Completion support for Quarkus/MicroProfile properties
  • Hover support for Quarkus/MicroProfile properties
  • Validation support for Quarkus/MicroProfile properties
  • Support for Quarkus profiles
  • Outline support

Quarkus/MicroProfile Java Features

In Java files, you will benefit with:

  • Completion support for MicroProfile
  • Hover support for MicroProfile
  • Validation and Quick Fix support for MicroProfile
  • Code Lens support for Quarkus/MicroProfile
  • Code snippets:
    • qrc - Create a new Quarkus resource class
    • qrm - Create a new Quarkus resource method
    • qtrc - Create a new Quarkus test resource class
    • qntrc - Create a new Quarkus native test resource class
    • snippets for MicroProfile annotations.

Requirements

Supported VS Code settings

The following settings are supported:

  • All microprofile.tools.* settings from the Visual Studio Code extension for MicroProfile
  • quarkus.tools.debug.terminateProcessOnExit : Determines whether to terminate the quarkus:dev task after closing the debug session. Default is Ask.
  • quarkus.tools.alwaysShowWelcomePage : Determines whether to show the welcome page on extension startup. Default is true.
  • quarkus.tools.starter.api : Quarkus API base URL. Default is https://code.quarkus.io/api.
  • quarkus.tools.starter.showExtensionDescriptions: Determines whether to show the Quarkus extension descriptions when selecting Quarkus extensions. Default is true.
  • quarkus.tools.propertiesLanguageMismatch : Action performed when detected Quarkus properties have an incorrect language. Default is forceQuarkus.

For Qute settings, please see here

Telemetry

With your approval, vscode-quarkus extension collects anonymous usage data and sends it to Red Hat servers to help improve our products and services. Read our privacy statement to learn more. This extension respects the redhat.telemetry.enabled setting, which you can learn more about at https://github.com/redhat-developer/vscode-redhat-telemetry#how-to-disable-telemetry-reporting

Articles

Contributing

This is an open source project open to anyone. Contributions are extremely welcome!

For information on getting started, refer to the CONTRIBUTING instructions.

CI builds can be installed manually by following these instructions:

  1. Download the latest development VSIX archive from here. (vscode-quarkus-XXX.vsix)

  2. Click View/Command Palette

  3. Type 'VSIX'

  4. Select 'Install from VSIX...' and choose the .vsix file.

Feedback

File a bug in GitHub Issues.

License

Apache License 2.0. See LICENSE file.

About

Quarkus Tools for Visual Studio Code, by Red Hat

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • TypeScript 94.2%
  • JavaScript 2.0%
  • EJS 1.7%
  • HTML 1.4%
  • CSS 0.7%