From f2c2aa7b8d1fd0093d1a26431c65cdf1cba8b0ef Mon Sep 17 00:00:00 2001 From: Ricardo Tribaldos <579671+tribal2@users.noreply.github.com> Date: Sat, 30 Mar 2024 01:57:30 -0500 Subject: [PATCH] chore: add vscode settings to allow pasting/dropping images directly into content collections --- .gitignore | 1 - .vscode/settings.json | 18 ++++++++++++++++++ 2 files changed, 18 insertions(+), 1 deletion(-) create mode 100644 .vscode/settings.json diff --git a/.gitignore b/.gitignore index da64c7b..ed65dbe 100644 --- a/.gitignore +++ b/.gitignore @@ -3,7 +3,6 @@ dist/ # generated types .astro/ .idea/ -.vscode/ # dependencies node_modules/ diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 0000000..c37a100 --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,18 @@ +{ + // Enable pasting files into a Markdown editor to create Markdown links. + "markdown.editor.filePaste.enabled": true, + + // Copy pasted media files into a Markdown editor to the workspace. + "markdown.editor.filePaste.copyIntoWorkspace": "mediaFiles", + + // Enable dropping files into a Markdown editor to create Markdown links. + "markdown.editor.drop.enabled": true, + + // Copy dropped media files into a Markdown editor to the workspace. + "markdown.editor.drop.copyIntoWorkspace": "mediaFiles", + + // Define the destination folder for copied files. + "markdown.copyFiles.destination": { + "/src/content/**/*": "/src/images/content/${documentBaseName}/" + }, +}