Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] #6 mac snippet 수정 및 스니펫 개선 #7

Merged
merged 1 commit into from
Nov 21, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions .vscode/typescript.code-snippets
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
"",
"export const ${1:${TM_DIRECTORY/^.+\\\\(.*)$/$1/}} = styled.div`",
" $2",
"`;"
]
"`;",
],
},
"Typescript React Styled Components in Mac": {
"scope": "typescript",
Expand All @@ -18,7 +18,7 @@
"",
"export const ${3:${TM_DIRECTORY/.*\\/(.*)$/$1/}} = styled.div`",
" $2",
"`;"
]
}
"`;",
],
},
}
44 changes: 22 additions & 22 deletions .vscode/typescriptreact.code-snippets
Original file line number Diff line number Diff line change
Expand Up @@ -6,18 +6,18 @@
"import * as S from './styles';",
"",
"type ${1:${TM_DIRECTORY/^.+\\\\(.*)$/$1/}}Props = {",
" $2",
" $2: $3",
"}",
"",
"export default function ${1:${TM_DIRECTORY/^.+\\\\(.*)$/$1/}}({ $2 }: ${1:${TM_DIRECTORY/^.+\\\\(.*)$/$1/}}Props ) {",
" return (",
" <S.${1:${TM_DIRECTORY/^.+\\\\(.*)$/$1/}} className=\"\">",
" ${1:${TM_DIRECTORY/^.+\\\\(.*)$/$1/}}",
" ${4:${1:${TM_DIRECTORY/^.+\\\\(.*)$/$1/}}}",
" </S.${1:${TM_DIRECTORY/^.+\\\\(.*)$/$1/}}>",
" )",
"}"
"}",
],
"description": "Creates a React Functional Component"
"description": "Creates a React Functional Component",
},
"Typescript React component with no props": {
"scope": "typescriptreact",
Expand All @@ -28,47 +28,47 @@
"export default function ${1:${TM_DIRECTORY/^.+\\\\(.*)$/$1/}}() {",
" return (",
" <S.${1:${TM_DIRECTORY/^.+\\\\(.*)$/$1/}}>",
" ${1:${TM_DIRECTORY/^.+\\\\(.*)$/$1/}}",
" ${2:${1:${TM_DIRECTORY/^.+\\\\(.*)$/$1/}}}",
" </S.${1:${TM_DIRECTORY/^.+\\\\(.*)$/$1/}}>",
" )",
"}"
"}",
],
"description": "Creates a React Functional Component"
"description": "Creates a React Functional Component",
},
"Typescript React component with props in Mac": {
"scope": "typescriptreact",
"prefix": "rfcmac",
"body": [
"import * as S from './styles'",
"import * as S from './styles';",
"",
"interface ${3:${TM_DIRECTORY/.*\\/(.*)$/$1/}}Props {",
" $1",
"type ${1:${TM_DIRECTORY/.*\\/(.*)$/$1/}}Props = {",
" $2: $3",
"}",
"",
"export const ${3:${TM_DIRECTORY/.*\\/(.*)$/$1/}} = ({ $2 }) => {",
"export default function ${1:${TM_DIRECTORY/.*\\/(.*)$/$1/}}({ $2 }: ${1:${TM_DIRECTORY/.*\\/(.*)$/$1/}}Props ) {",
" return (",
" <S.${3:${TM_DIRECTORY/.*\\/(.*)$/$1/}}>",
" ${3:${TM_DIRECTORY/.*\\/(.*)$/$1/}}",
" </S.${3:${TM_DIRECTORY/.*\\/(.*)$/$1/}}>",
" <S.${1:${TM_DIRECTORY/.*\\/(.*)$/$1/}} className=\"\">",
" ${4:${1:${TM_DIRECTORY/.*\\/(.*)$/$1/}}}",
" </S.${1:${TM_DIRECTORY/.*\\/(.*)$/$1/}}>",
" )",
"}"
"}",
],
"description": "Creates a React Functional Component"
"description": "Creates a React Functional Component",
},
"Typescript React component with no props in Mac": {
"scope": "typescriptreact",
"prefix": "rfcnmac",
"body": [
"import * as S from './styles'",
"import * as S from './styles';",
"",
"export const ${1:${TM_DIRECTORY/.*\\/(.*)$/$1/}} = () => {",
"export default function ${1:${TM_DIRECTORY/.*\\/(.*)$/$1/}}() {",
" return (",
" <S.${1:${TM_DIRECTORY/.*\\/(.*)$/$1/}}>",
" ${1:${TM_DIRECTORY/.*\\/(.*)$/$1/}}",
" ${2:${1:${TM_DIRECTORY/.*\\/(.*)$/$1/}}}",
" </S.${1:${TM_DIRECTORY/.*\\/(.*)$/$1/}}>",
" )",
"}"
"}",
],
"description": "Creates a React Functional Component"
}
"description": "Creates a React Functional Component",
},
}
Loading