How to Switch to JS Environment in WPS on Windows

Last updated:July 16, 2026

Use Switch to JS Environment in WPS on Windows with 2 how-to topics, including switching between JS and VB environments and setting JS as the default development environment.

How-to Index

How-to Guide

1. Switch between JS and VB environments

Feature entry: Developer → Switch to JS Environment / Switch to VB Environment

  1. Click the Developer tab at the top of the window.
  2. Click Switch to JS Environment.
  3. The current environment changes from VBA to JavaScript.
  4. If needed, click Switch to VB Environment to return.

Success Criteria

  • Interface result: The macro editor reflects the selected environment.
  • Next action available: You can continue writing or reviewing code in that environment.

Tips While Using

  • VBA and JS are separate macro environments with different syntax and runtime behavior.
  • Check which macro language you need before switching.

2. Set the default JS development environment

Feature entry: File → Options → View → Default JS Development Environment

  1. Click the File menu in the upper-left corner.
  2. Select Options to open the Options dialog.
  3. Select the View tab on the left.
  4. Find the Default JS Development Environment checkbox on the right.
  5. Select the checkbox and click OK to save the setting.
  6. Restart WPS to make the setting take effect. WPS Macro Editor then opens in the JS environment by default.

Success Criteria

  • Interface result: The setting remains selected after saving.
  • Next action available: After restart, you can enter the JS macro environment directly.

Tips While Using

  • The setting takes effect after WPS restarts.
  • If you still maintain older VB macros often, you can keep using manual switching when needed.