3. Using different IDEs for developing WAPT packages

3.1. Configuring WAPT to use supported IDEs

If you are used to work with another IDE, you can be relieved now as WAPT supports many popular text editors.

Note

Using a supported IDE will launch the WAPT package project with a valid debug configuration.

3.1.1. On Windows

Natively supported text editors in WAPT on Windows

Text editor name

Accepted keywords

Text editor logo

PyScripter

pyscripter

Pyscripter text editor

Visual Studio Code

vscode or code

Visual Studio text editor

Visual Studio Codium

vscodium or codium

VSCodium text editor

To configure another editor for WAPT (for example vscode), you MUST modify the editor_for_packages attribute in the preferences box in Tools.

_images/editor_for_packages_parameter.png

Editor for package parameter

To configure another editor for WAPT (for example vscode), you MUST modify the editor_for_packages attribute in the [global] section of your WAPT Console’s %LOCALAPPDATA%\waptconsole\waptconsole.ini configuration file.

[global]
...
; with a keyword
editor_for_packages = vscode
; or with the path to the binary
editor_for_packages = "C:\Program Files\Microsoft VS Code\Code.exe"

3.1.2. On Linux / macOS

Natively supported text editors in WAPT on Linux / macOS

Text editor name

Accepted keywords

Text editor logo

Visual Studio Code

vscodium or code

Visual Studio text editor

Visual Studio Codium

vscodium or codium

VSCodium text editor

Nano

vscode or code

Nano text editor

Vim

vim

Vim text editor

Vi

vi

vi

To configure another editor for WAPT (for example vscode), you MUST modify the editor_for_packages attribute in the preferences box in Tools.

_images/editor_for_packages_parameter.png

Editor for package parameter

To configure another editor for WAPT (for example vscode), you MUST modify the editor_for_packages attribute in the [global] section of your WAPT Console’s %LOCALAPPDATA%\waptconsole\waptconsole.ini configuration file.

[global]
...
; with a keyword
editor_for_packages = vscode
; or with the path to the binary
editor_for_packages = "C:\Program Files\Microsoft VS Code\Code.exe"

By default, if the editor_for_packages attribute is empty, WAPT will try to launch (in that order):

  • vscodium;

  • vscode;

  • nano;

  • vim;

  • vi.

3.2. Configuring WAPT to use a custom editor

[global]
...
editor_for_packages = C:\Program Files\Notepad++\notepad++.exe {setup_filename}
[global]
...
editor_for_packages = /opt/pycharm/bin/pycharm_x64 {wapt_sources_dir}

3.2.1. Custom arguments

Arguments for the editor_for_packages option

Argument

Description

{setup_filename}

Launches custom editor and edit WAPT package setup.py file.

{control_filename}

Launches custom editor and edit WAPT package control file.

{wapt_sources_dir}

Launches the custom text editor and opens the WAPT package folder.

{wapt_base_dir}

Launches the custom text editor and opens the WAPT install folder.