# Workspace

The workspace refers to the working directory where the software is developed.

# IDE

Default IDE of choice by the main developer is Visual Studio Code (opens new window) and Chevere provides tooling and recommendations on how to configure this IDE.

# Assets

Templates and settings are at the .vscode/ (opens new window) folder.

# Template Snippets

Snippets (opens new window) in Visual Studio Code provide an easy way to define templates for code. It is a productivity tool that allows to cast source code typing keywords in the IDE.

Snippets provide this functionality for the IDE:

Snippets in action

For the example above, the header comment and strict_types declaration are automatic provided by the coding standard formatting.

# Extensions

This is a list of the extensions that the main developer recommends for using Visual Studio Code for developing Chevere. None of these are required, but it will improve the development experience.

# Coding Standards Formatting

The coding standard is automatic implemented on save by using Run on Save extension.

Add your filters

Make sure to configure your filters in the ecs.php file.

{
    "runOnSave.commands": [
        {
            "match": "\\.php$",
            "command": "php vendor/bin/ecs check ${file} --fix",
            "runIn": "backend",
            "runningStatusMessage": "ECS ${fileBasename}",
            "finishStatusMessage": "${fileBasename} OK"
        },
    ]
}

# Testing

PHPUnit Test Explorer (opens new window) provides inline tools for code execution and reviewing. It allows to easily handle all tests.

# Code Coverage

Coverage Gutters (opens new window) provides visual feedback regarding covered lines right into the editor.