Merge pull request #32 from rotary-dev-fellowship/chore/vscode-collection-images

Add VSCode settings for pasting/dropping images into content collection pages
This commit is contained in:
Emil Gulamov 2024-03-30 14:07:28 +04:00 committed by GitHub
commit 4b3877db03
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 18 additions and 1 deletions

1
.gitignore vendored
View file

@ -3,7 +3,6 @@ dist/
# generated types
.astro/
.idea/
.vscode/
# dependencies
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}/"
},
}