Skip to content

is there an option for the directory and HTML file created during a VSCODE preview to get automatically cleaned up #12504

Answered by mcanouil
atitusfwd asked this question in Q&A
Discussion options

You must be logged in to vote

Short answer: no because "preview" is "render + show the results" so they have to be there for you to see them.

  • Add the files to .gitignore and use git to clean up the files not watched (git clean -fdX https://git-scm.com/docs/git-clean).
  • Change the output-directory (if a project), see other GitHub discussions and the documentation on the matter.
  • Write a script as a "task" for VSCode that does the clean up
  • Write a script that you execute from the terminal
  • etc.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@atitusfwd
Comment options

Answer selected by atitusfwd
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
editors Issues with editing in text editors, IDEs, etc
2 participants