Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Cmd + Click for multiple-cursor is not working

I am trying to use Cmd + Click to drag multiple cursors into existence.

However, when I select "Switch to Cmd+Click for multiple-cursor" it doesnt work, instead Alt + Click works to create multiple cursors which is odd.... then when I switch it back to "Switch to Alt+Click for multiple-cursor" neither Cmd + Click and Alt + Click work. I believe this is because the default settings in the JSON file has editor.multiCursorModifier": "alt". I can't edit the file because it's in read-only mode which I don't know how to change. I've been at this for over 4 hours now so I would appreciate anyone's help on this.

enter image description here

enter image description here

like image 814
user23318411 Avatar asked Jun 04 '26 11:06

user23318411


1 Answers

I was looking around, and I found out that the defaultSettings.json file isn't supposed to be edited by you. This is because these are the "factory" settings for vscode, so if you ever mess anything up, you can always refer back to this.

Instead what you need to do open your user settings json file. You can do this in vscode by clicking on the search bar, then pasting in >Preferences: Open User Settings. Then add the line "editor.multiCursorModifier": "ctrlCmd",.

If this doesn't work, then try deleting the contents in the settings.json and copy-pasting the contents from defaultSettings.json into settings.json (note that this will factor-reset your settings). Then replace the "editor.multiCursorModifier": "alt", with "editor.multiCursorModifier": "ctrlCmd",

like image 130
Keshav V. Avatar answered Jun 07 '26 16:06

Keshav V.



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!