VisualEdit

How to use VisualEdit

Edit your local website visually in Chrome. Every change is written into your project files.

What you need

Every time you edit

  1. Start the helper in your project folder. Open a terminal in the folder of your project and run npx visualedit-agent. Keep that window open while you edit. It edits the project of the folder it was started in.
  2. Open your site. Start it the way you always do (for example VS Code Live Server or npm run dev) and open its localhost address in Chrome. A plain HTML project with no server yet: in a second terminal in the same folder run npx http-server -c-1 and open the address it prints. So you have two terminal windows open: the helper and your site.
  3. Open the side panel. Click the VisualEdit icon in Chrome's toolbar. The first time, read the short notice, tick the box to agree to the Terms and the Privacy Policy, and press I understand. The panel shows a green dot and your project's name when the helper is running.
  4. Select an element. Turn on Select at the top of the panel and click anything on your page.
  5. Change it.
    • Properties: change colours, sizes, spacing, fonts, borders and more by hand, then press Save. Unlimited and free.
    • Chat: describe the change in plain words, for example "make this button green and a little bigger". The AI writes it for you.
    • Tree: see the structure of your page and pick the exact element you want.
    • The + button in Properties adds a new element (a heading, text, a button, a picture...) next to or inside the selected one.
  6. See the result. The change is written into your files right away and your page updates.
  7. When you are done, press Ctrl+C in the terminal to stop the helper.

Undo and safety

Git (optional, recommended)

Git is a free tool that keeps a history of your project. You do not need it to use VisualEdit, but with it every change can be reviewed and taken back at any time, even after VisualEdit is closed.

If your project is already in git: VisualEdit saves each change as its own commit, with a message that starts with VisualEdit:. It only commits the files it wrote, so your own unfinished work is left alone. See what it did with git log. Take one change back with git revert <commit>.

If your project is not in git yet, to start using it:

  1. Install git once (on Windows, the installer's default choices are fine). Check it with git --version in a terminal.
  2. Tell git who you are, once: git config --global user.name "Your Name" and git config --global user.email "you@example.com".
  3. In your project folder run: git init, then git add ., then git commit -m "First version". This saves your project as it is now, before any VisualEdit change.
  4. Restart the helper (npx visualedit-agent) in that folder. The panel now tells you the project uses git.

To keep a copy online (optional): create a free account on GitHub, create a new empty repository there (private if you like), and GitHub shows two commands to copy: git remote add origin <the address> and git push -u origin main. Run them in your project folder. After that, send your changes any time with git push.

If you do not want any commits from VisualEdit, simply do not use git in that folder: Undo and Revert all keep working without it.

Free and Pro

If something does not work

Privacy

The extension only works on localhost pages. Only an AI command sends something out: your command and the code of the selected element. Read the Privacy Policy.

Help

Write to visualedithelp.support@gmail.com. The Account panel has a Support link that fills in your Support ID for you.