์ฃผ์์ ๋ฌ ๋ ์์ ์ฌํญ์ผ๋ก ์ค๋ ๋ ์ง๋ฅผ ๋ฃ๋ ๊ฒฝ์ฐ๊ฐ ๋ง๋ค.
๋จ์ถํค๋ฅผ ์ฌ์ฉํ์ฌ ์ค๋ ๋ ์ง๋ฅผ ๋ฃ์ด ๋ณด์.
์์
- vscode์์ Preferences: Open Keyboard Shortcuts (JSON) ์ ํ.
ctrl + shift + ,
๋๋F1
๋งฅ์โCommand + โงShift + P
- Preferences: Open Keyboard Shortcuts (JSON) ๊ฒ์
- keybindings.json ์์ ์๋ ์ฝ๋ ๋ฃ๊ธฐ
[
{
"key": "ctrl+t", // ๋จ์ถํค ์ง์
"command": "editor.action.insertSnippet",
"when": "editorTextFocus",
"args": {
"snippet": "$CURRENT_YEAR-$CURRENT_MONTH-$CURRENT_DATE" // YYYY-MM-DD
}
}
]
ctrl + t ๋ฅผ ๋๋ฅผ ์ YYYY-MM-DD ๋ผ๋ ํ์ฌ ๋ ์ง๊ฐ ์ ๋ ฅ๋๋ค.
Reference
https://stackoverflow.com/questions/38780057/how-to-insert-current-date-time-in-vscode
How to insert current date time in vscode?
Does anyone know of a way that I can insert the current date & time in a visual studio code by snippets? I have looked docs but did not get any information about it. I want to create a snipp...
stackoverflow.com