How to Use WPS View Code on macOS

Last updated:July 17, 2026

Use WPS View Code on macOS through 2 operation topics; both are available without membership, and 0 topics are membership-related.

How-to Index

How-to Guide

1. Open the View Code entry

Entry path: Developer Tools → View Code

  1. Open WPS Writer on your Mac and open the target document.
  2. Click the Developer Tools tab on the ribbon.
  3. Click View Code.
  4. Wait for the WPS Macro Editor window to open.

Success Criteria

  • Interface result: The WPS Macro Editor window opens.
  • What you can do next: You can review existing code or continue by creating a new module.

Tips While Using

  • Common mistake: If you are not on the Developer Tools tab, you may not see the View Code button.
  • Environment note: If the button is unavailable, check whether macro-related settings are enabled first.

2. Insert a module and write code in the macro editor

Entry path: Tools → Developer Tools → WPS Macro Editor; then Insert → Module in the editor

  1. Open the WPS Macro Editor first.
  2. Click Insert at the top of the editor.
  3. Select Module.
  4. Type or paste JavaScript code into the new JS module.
  5. Save your changes as needed and continue with later testing or editing.

Success Criteria

  • Interface result: A new module appears in the editor.
  • What you can do next: You can continue entering, revising, and maintaining code in the module area.

Tips While Using

  • Common mistake: You cannot insert a module before opening the macro editor.
  • Environment note: Before editing or running code from another person, confirm its purpose and back up the document.