How to Paste Images into Your Hugo Blog in VS Code on Mac

1. Install the “Paste Image” Extension in VS Code

  • Open VS Code
  • Press Cmd + Shift + X to open Extensions
  • Search for “Paste Image” by mushanh
  • Click Install

2. Configure the Extension to Save Images in Your Blog Folder

  • Open Settings (Cmd + ,)

  • Search for “pasteImage.path”

  • Set it to:This ensures images are saved inside the same folder as the Markdown file.

    ${currentFileNameWithoutExt}
    

  • Open Keyboard Shortcuts (Cmd + K, Cmd + S)
  • Search for “Paste Image”
  • Assign a shortcut like Cmd + Alt + V

4. Important

Delete the folder name from the image path.