chore: add vscode settings to allow pasting/dropping images directly into content collections

This commit is contained in:
Ricardo Tribaldos 2024-03-30 01:57:30 -05:00
parent 9566b4403f
commit f2c2aa7b8d
2 changed files with 18 additions and 1 deletions

1
.gitignore vendored
View file

@ -3,7 +3,6 @@ dist/
# generated types # generated types
.astro/ .astro/
.idea/ .idea/
.vscode/
# dependencies # dependencies
node_modules/ node_modules/

18
.vscode/settings.json vendored Normal file
View file

@ -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}/"
},
}