Nick
03/30/2023, 8:28 AMTODO without deleting the brackets and without using the mouse?Youssef Shoaib [MOD]
03/30/2023, 8:30 AMRight, `Left`*2, `Ctrl`+`Shift`+`Left` * 3, then start typingSam
03/30/2023, 8:32 AMSam
03/30/2023, 8:33 AM{ /* TODO */ } block for a lambda like this before.Youssef Shoaib [MOD]
03/30/2023, 8:34 AMVampire
03/30/2023, 8:40 AM{ or Ctrl+Shift+w with default key bindingsNick
03/30/2023, 8:41 AM{ wraps it again in bracketsVampire
03/30/2023, 8:43 AMCtrl+Shift+wNick
03/30/2023, 8:44 AMVampire
03/30/2023, 8:45 AMNick
03/30/2023, 8:46 AMSam
03/30/2023, 9:26 AMEscape to drop the live template selection
⢠âĄď¸ to position the cursor directly before the first /
⢠Option + âŹď¸ (âgrow selectionâ) to select the /* TODO */ comment
⢠Delete
(Those are Mac keybindings â adjust as appropriate for your OS/keymap)Vampire
03/30/2023, 9:55 AMSam
03/30/2023, 10:17 AM{ /* TODO */ } as a default parameter value (which I assume is whatâs happening in the OP) and when I use âshrink selectionâ it drops the whole selection, rather than shrinking step by step. Once itâs dropped the selection, âgrow selectionâ does work okay, though.Sam
03/30/2023, 10:22 AMMustafa Ozhan
03/30/2023, 12:06 PMVampire
03/30/2023, 12:59 PMMustafa Ozhan
03/30/2023, 10:39 PMDEL + {
the } is also automatically added after, so you find yourself between brackets
Then you can go to below lambda with Enter