Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there a way to enable camel humping through method names in VS Code?

Tags:

As this question is for the "big" Visual Studio and Resharper, I'd like to see that feature in VS Code too.

Scrolling through the shortcut list for VS Code, I couldn't find it but I'm hoping that it's still there but called something less intuitive than camel, hump or such.

like image 315
Konrad Viltersten Avatar asked Nov 14 '16 16:11

Konrad Viltersten


People also ask

How do I enable hints in Visual Studio code?

Open the Default Keyboard Shortcuts (File > Preferences > Keyboard Shortcuts) and search for "suggest".

How do you use a Multicursor in VS Code?

VS Code supports multiple cursors for fast simultaneous edits. You can add secondary cursors (rendered thinner) with Alt+Click. Each cursor operates independently based on the context it sits in. A common way to add more cursors is with Shift+Alt+Down or Shift+Alt+Up that insert cursors below or above.

Why is my IntelliSense not working?

If IntelliSense is not working as it should on your Windows 11/10 PC, you can try restarting VS Code and this should solve the issue. Restarting the program can be really effective and time saving in some cases. If the issue persists, you can try restarting your computer altogether.


2 Answers

As of version 1.25 these commands are built in:

enter image description here

like image 183
cezn Avatar answered Oct 09 '22 17:10

cezn


I found this extensions to work https://marketplace.visualstudio.com/items?itemName=ow.vscode-subword-navigation

Funny thing is that you need to configure each combination separately:

{     "key": "alt+left",     "command": "subwordNavigation.cursorSubwordLeft",     "when": "editorTextFocus" }, {     "key": "alt+right",     "command": "subwordNavigation.cursorSubwordRight",     "when": "editorTextFocus" }, {     "key": "alt+shift+left",     "command": "subwordNavigation.cursorSubwordLeftSelect",     "when": "editorTextFocus" }, {     "key": "alt+shift+right",     "command": "subwordNavigation.cursorSubwordRightSelect",     "when": "editorTextFocus" }, {     "key": "alt+backspace",     "command": "subwordNavigation.deleteSubwordLeft",     "when": "editorTextFocus" }, {     "key": "alt+delete",     "command": "subwordNavigation.deleteSubwordRight",     "when": "editorTextFocus" } 
like image 22
Krzysztof Kaczor Avatar answered Oct 09 '22 18:10

Krzysztof Kaczor