How to Use WPS Document Components on macOS

Last updated:July 15, 2026

Use WPS Document Components through 4 how-to topics, including inserting dates, inserting fields, inserting code blocks, and using AutoText; 4 topics are available without membership and 0 are membership-related.

How-to Index

How-to Guide

1. Insert Date

Entry point: Insert > Document Components > Date

  1. Place the cursor where you want to insert the date.
  2. Click Insert on the top menu bar.
  3. Open the Document Components drop-down menu.
  4. Click Date.
  5. In the pop-up window, choose the date format and language.
  6. If you want the date to change with system time, select Update automatically.
  7. Click OK to finish.

Success Criteria

  • UI state: The selected date format appears in the document.
  • Next actions: You can continue editing the document or change the date format again.
  • No side effects: Other existing content in the document is not affected.

Tips While Using

  • Common mistakes: If you do not place the cursor first, the date may be inserted in the wrong position.
  • Environment limits: Automatic updates depend on system time and the date field state in the document.

2. Insert Field

Entry point: Insert > Document Components > Field

  1. Click Insert on the top menu bar.
  2. Open the Document Components drop-down menu.
  3. Click Field.
  4. Select the field type you need.
  5. Set the related parameters as needed.
  6. Click OK to insert the field content.
  7. Select the field and press Fn+F9 to update the field result.
  8. To view or switch the field code, press Shift+Fn+F9.

Success Criteria

  • UI state: The inserted field result or field content appears in the document.
  • Next actions: You can continue updating the field, switching field code display, or adjusting parameters.
  • No side effects: Before unlinking, the field can still keep its dynamic update behavior.

Tips While Using

  • Common mistakes: Treating a field result as plain text can cause you to miss later updates.
  • Environment limits: Different field types can display different results depending on document content or parameters.

3. Insert Code Block

Entry point: Insert > Document Components > Code Block

  1. Click Insert on the top menu bar.
  2. Open the Document Components drop-down menu.
  3. Click Code Block.
  4. Enter or paste the code in the editing area.
  5. Select the matching programming language.
  6. Click OK to finish.

Success Criteria

  • UI state: A separate code block area appears in the document.
  • Next actions: You can continue editing the code or adjust nearby formatting.
  • No side effects: Regular body text styles are not automatically changed.

Tips While Using

  • Common mistakes: If you do not choose the right language, the code display may not be as clear.
  • Environment limits: A code block is mainly for display and formatting, not a replacement for an external development environment.

4. Use AutoText

Entry point: Insert > Document Components > AutoText

  1. Select the text content you want to save.
  2. Click Insert on the top menu bar.
  3. Open the Document Components drop-down menu.
  4. Click AutoText.
  5. Select Save the selected content to the AutoText library.
  6. Enter a name and save it.
  7. When you need to reuse it later, open AutoText again and insert the saved item.

Success Criteria

  • UI state: The selected content is saved as an AutoText item that can be called again.
  • Next actions: You can insert the same content again in other documents.
  • No side effects: The original selected text remains in the current document.

Tips While Using

  • Common mistakes: If you do not select the full text first, the saved content may be incomplete.
  • Environment limits: Reuse depends on the AutoText content available in the current client.