{
"index": {
"prefix": ["i"],
"description": "Create a index with the component and the type.",
"scope": "javascript, typescript",
"body": [
"import { ${RELATIVE_FILEPATH/.*\\/(.*)\\/.*/${1:/pascalcase}/} } from './${RELATIVE_FILEPATH/.*\\/(.*)\\/.*/${1:/pascalcase}/}';",
"",
"export type { Type${RELATIVE_FILEPATH/.*\\/(.*)\\/.*/${1:/pascalcase}/}Props } from './types';",
"export default ${RELATIVE_FILEPATH/.*\\/(.*)\\/.*/${1:/pascalcase}/};",
""
]
}
}
Hi,
It would be awesome if this extension can be detect snippets from .vscode. This snippets has the extension
.code-snippets
.Now it throws this error: Snippet doesn't found
I also add my configuration in case it was my mistake. Thank you for your work!
My .vscode configuration
My Snippet in
.vscode/story.code-snippets