ã¾ã æ±ããç¥ããªãè¥è ã ã£ãããã«ãããã°ã©ã ã¯ããããã使ã£ã¦æ¸ããã ããã¨è¨ããã¦ä»¥æ¥Vimã¯åéã ã¨æã£ã¦ãã£ã¨ï¼15å¹´ãããï¼ä½¿ã£ã¦ããããæè¿ã¯ãã¨ãã«æ°ããä½ããæ¸ãã¨ãã«ã¯VSCodeã使ãããã«ãªã£ã¦ãããã³ã¼ããæ¸ãééãåºãã£ã¦ããããããæ°ããæè¡ãè¨èªã«å¯¾å¿ãããã¨ãã§ãã¦ãããããªããæåããããæãã«ãªã£ã¦ãã¨ãã£ã¿ãéå®ãããæ³ãåã£ã¦ãããããªãã ãããªãã¨ç´ ç´ã«æãããã©ãèªååãã«ãªã«ããã«ã¹ã¿ãã¤ãºãããã¨ã«ãã¾ãç±ãæããªããªã£ã¦ãã¦ããã§ã«ããããã¨åãã£ã¦ãããã®ã«èªåã調æ´ãã¦ãããã¨ãé¸ã¶ããã«ãªã£ã¦ããã
ã¨ã¯ãã身ä½ã¯Vimã«æ £ããã£ã¦ãã®ã§VSCodeã使ãå§ããã¨ãã¯VSCodeVimã使ã£ã¦ããâ¦â¦ãããã¨ããã®ãä»åã®è©±ãããã§ãã¦ãã¨ã¯æãããã¨ã«ããuï¼ã¢ã³ãã¥ï¼ã®æåãæ¬å®¶ã¨éãã®ãã©ãã身ä½ã«åããªããéã«ã¹ãã¬ã¹ãé«ã¾ã£ã¦ãã¾ãã®ã§ãããã£ãï¼ ã¨ãããã¨ã§ç´ ã®VSCodeã使ã£ã¦ã¿ããã¨ã«ããã®ã ï¼
ã¤ã¾ãã¨ããã¨ãã£ã¿å ã®ç§»åãç·¨éãæ¤ç´¢ãå ¨é¨ã³ã³ããã¼ã«ãã¼ã¨ããã¡ã³ã¯ã·ã§ã³ãã¼ã¨ãç¢å°ãã¼ã¨ããé§ä½¿ãã¦ããã¨ãããã¨ã«ã»ããªããªããHHKBï¼ã¨ãã®é¡ä¼¼ãã¼ãã¼ãï¼ã使ã£ã¦ãã®ã§å³æå°æãéãããããã¡ãªã¿ã«åè¨ã®ããã«ã§ããã ãç´ ã使ãããã®ã§ãã¼ãããã極åå¤æ´ããªããã¨ã«ãã¦ãããCmd+P ã§ã ãããã®ãããããã¨ã¯å¬åã§ããããããã¨ãã¦ã¹ã使ããããæ©ä¼ãå°ãªãã®ã¯ããã
ã¨ã¯ããé©æé©æã§ãæ軽ã«ç·¨éãããå ´åãè¾¼ã¿å ¥ã£ããã¨ããããå ´åã«ã¯ä»ãã¿ã¼ããã«ã¨Vimã§å¦çããæ©ä¼ã¯å¤ãã
Vimã§ãã使ã£ã¦ãããã¼ã®å¯¾å¿
- V: è¡ãé¸æãæå¤ã¨ä½¿ã£ã¦ãããããCmd+L ã§å®ç¾ã§ãããé£æããã°é¸æãåºããã®ããããæ £ãããã¦ãã©ã¦ã¶ã®ã¨ãã£ã¿å ã§æ¼ãã¦ãã¾ã£ã¦ã¢ãã¬ã¹ãã¼ã«é£ã³ãã¡ã
- G: ç¹å®ã®è¡ã«ã¸ã£ã³ããCtrl+G ãã¦ããè¡çªå·ãå ¥åã
- C-]: å®ç¾©ãã·ã³ãã«ã«ã¸ã£ã³ããF12 ããã®ä¿®é£¾ã§ããããããã®ã§å³è¦ªæãF12ã«ãã¦ããã
- C-O: å ããå ´æã«æ»ããCtrl+- ããããã©èª¤çãã¾ãã&ä»ã®ã¢ããªã¨æãããã£ãã®ã§ Cmd-[ ãè¨å®ããã
- J: è¡ã®é£çµããããªã«ä½¿ããæ°ããããã©ãCtrl+J ã§ã§ããã
VSCodeã§ä¾¿å©ã«ä½¿ã£ã¦ããæ©è½
- F2 ã§ã·ã³ãã«ããªãã¼ã
- Shift+Alt+H 㧠Call Hierarchy ã表示
- Cmd+D ã§åèªãé¸æ
- Cmd+T ã§ã·ã³ãã«ã«ã¸ã£ã³ã
- Cmd+K Cmd+I ã§ããã¼æ å ±åºã
- ãããã¬
- Copilot
VSCodeã«ãªãã¦å°ã£ãï¼å°ã£ã¦ãï¼ãã¤
- i(: ã«ãã³å ã®æååãé¸æãç·¨éãªã©ã®motionãExpand Selection Ctrl+Shift+Cmd+â ã¨ããé人éçãªãã¼ãã¤ã³ãã§ãæå³åä½ã§é¸æç¯å²ãåºãããã¨ãã§ãããããããªã®è¦ãããããããªããâ¦â¦ã¨æ¸ãã¦ã¦æ°ã¥ãããã©ä¿®é£¾ãã¼ã¯macOSã®ã¹ã¯ãªã¼ã³ã·ã§ãã Ctrl+Shift+Cmd+3 ã¨ä¸ç·ã ãªãããã ã£ãããããããã
- :grep: ãã¡ã¤ã«å ã®æååæ¤ç´¢ããã¡ããã¨ãã£ã¿å ã§æ¤ç´¢ã§ãããã ãã©ããªãã·ã§ã³ãé¸ã³ã¥ããã£ããå ¥åãããã³ã«çµæãæ´æ°ãããã®ã§ææããã¦ä½¿ãã¥ããã:grep ãªã -w ãã¤ãã¦åèªãããã«ãããæ¤ç´¢å¯¾è±¡ã®ãã£ã¬ã¯ããªãçµã£ããããã¼å ¥åã§æ®éã«ã§ããã
- Quickfixããªãããã®æ¤ç´¢çµæã¨ãã¨ã©ã¼ç®æãé çªã«è¦ã¦ãã£ããã§ãããã¥ã¼ãä¸è¨ã® :grep ã®æ¤ç´¢çµæã¨ããæ®éã«ã¨ãã£ã¿ã®ãããã¡ã¨ãã¦éãããã®ã§ãæ¤ç´¢æ¬ã«æåãå ¥åãã¦ãã¾ã£ã¦çµæãå£ãããããªãå®å¿æããããVSCodeã ã¨æ©è½ã«ãã£ã¦ãµã¤ããã¼ã«åºããä¸ã®ããã«ã«åºããã¨ä½¿ãæ¹ãéãã®ãé£ããã
- Ctrl-X Ctrl-F: ãã¡ã¤ã«ãã¹ãè£å®ãã¨ããããã¡ã¤ã«ãã¹å¨ãã¯å ¨ä½çã«å¼±ãããã¡ã¤ã«ã®ä¿åã¨ãã«ãã¤ãã£ãã®ãã¤ã¢ãã°ãéãã®ã«ã¢ã¿ãããæãããã¿ã¼ããã«ã§touchãã¦ããéãã¨ããã¦ãã
- Ctrl-X Ctrl-L: è¡ãè£å®ãããåã¨åããã¨æ¸ãã®ã§è£å®ãã¦ããï½ã¨é¡ãã¨ãããããCopilotã ã¨ã¾ã ã¡ãã£ã¨é ãã
- 横移åãé ããAlt+â ã«å¤§ãã移åããæ¹æ³ãã»ããã
- git diff ããçµæãããã¡ã¤ã«ã«ã¸ã£ã³ãããã¿ãããªãã¨ãããããã©ãªããé¢åã
ããã¾ãæ¡å¼µãå ¥ãã¦ãªããã ããªãããã«ã¹ã¿ãã¤ãºãªã©ç¥ã£ã¦ãæ¹ã¯ãã²æãã¦ãã ããã