SANJIESAN WORLDJOURNAL / COLLECTIONS / SANJIESAN
SANJIESANTOOLS

SANJIESAN TOOLS / Editing checks

Before Replace All, inspect where the matches came from

A resource name may occur in a current guide, an archived note, a sample input and a filename. One instruction to replace the name does not necessarily cover all four. Prepare a small scope note before using a multi-file search. The important question is which occurrences have the intended meaning, not how many matches the tool can find.

Write the boundary in ordinary language

For example, change the displayed title in current English guides while leaving historical quotations and sample identifiers untouched. List the relevant folder and file type. VS Code supports included and excluded search paths; its documented search settings can also omit files. Keep those settings visible in the review note. A result list does not prove that every file on disk was searched, particularly when you have intentionally narrowed the scope.

Read context before approving a replacement

Inspect one match from each distinct use, then read the exceptions individually. A product name in prose can require a change while the same letters inside an external URL should remain unchanged. Avoid using a broad regular expression simply because the literal search returns fewer results than expected. First check case, spelling and the chosen folder. Keep an unresolved occurrence on a short decision list instead of forcing it into the majority rule.

Review what changed and what stayed

Apply the agreed changes to a recoverable working copy, then inspect the resulting diff. Check one deliberately preserved example as well as each changed use. Run the bounded search again to account for remaining matches, without claiming that an empty result certifies the whole project. Record the intended exclusions. This makes the replacement reviewable and helps the next editor understand why an old spelling still appears in a quotation or fixture.

Sources & further reading

LET’S MAKE WHAT COMES NEXT

Have a product, a resource or an idea?

For suppliers, creators and brands. Tell us what you have in mind and where you work.

Start a conversation ↗