Visual Studio Code

This chapter describes the Zato plugin for Visual Studio Code, available from the Visual Studio marketplace, which adds a default keybinding along with a toolbar button enabling simplified hot-deployment to your development cluster.

Other chapters describe how to debug Zato services with VS Code and how to add code completion (IntelliSense) to the IDE.

Prerequisites

To enable hot-deployment from Visual Studio Code, ensure you have first followed the prerequisite configuration instructions.

Installation

Visit the Extensions Marketplace either in your browser, or within the application, by pressing Ctrl+Shift+X hot-key:

Configuration

After the installation completes, visit the settings panel via Ctrl+, to configure your cluster connection:

Deployment

  • Automatic deployment is triggered on every file save if a Python file contains a special deployment marker within its first 100 lines of source code:

# zato: ide-deploy=True
For instance:
# -*- coding: utf-8 -*-
# zato: ide-deploy=True

from zato.server.service import Service

class MyService(Service):
    def handle(self):
        pass
  • While editing any Python module, you can also deploy to the configured Zato cluster by clicking the toolbar icon, or pressing the Ctrl+Shift+L hotkey: