# Refactoring (/docs/verdent-cloud/coding-workflows/refactoring)

> Refactor Cloud project code while keeping behavior stable.



Refactoring is safest when the goal is narrow and the expected behavior is explicit. Verdent can reorganize files, simplify components, rename concepts, or reduce duplication in the Cloud workspace.

<Steps>
  <Step title="Define the boundary">
    Tell Verdent what should change and what must stay the same.
  </Step>

  <Step title="Ask for a plan when needed">
    Use Plan Mode for large or risky refactors.
  </Step>

  <Step title="Review the diff and preview">
    Inspect the changed files and use Live Preview before publishing.
  </Step>
</Steps>

Prefer small refactors that can be validated quickly over large rewrites that are hard to review.
