Vscode: Ajouter une option de comportement Ctrl + Droite

Créé le 1 mars 2016  ·  3Commentaires  ·  Source: microsoft/vscode

Ctrl + Droite se comporte comme sublime, il va à la fin du mot courant.

VS (et d'autres éditeurs Windows tels que le bloc-notes, le mot) va au début du mot suivant.

Pour satisfaire les deux camps, nous devons ajouter une option d'éditeur pour contrôler ce comportement.

bug verified

Commentaire le plus utile

Pour contrôler ce comportement et obtenir Ctrl + Droite de style VS, veuillez modifier votre keybindings.json et ajouter:

{ "key":"ctrl+right",       "command":"cursorWordStartRight",       "when":"editorTextFocus" }
{ "key":"ctrl+shift+right", "command":"cursorWordStartRightSelect", "when":"editorTextFocus" }

Cela écrasera les valeurs par défaut:

{ "key":"ctrl+right",       "command":"cursorWordEndRight",       "when":"editorTextFocus" }
{ "key":"ctrl+shift+right", "command":"cursorWordEndRightSelect", "when":"editorTextFocus" }

Tous les 3 commentaires

Ce serait génial avec une option pour Ctrl + Gauche aussi pour le comportement mentionné dans # 943

Pour contrôler ce comportement et obtenir Ctrl + Droite de style VS, veuillez modifier votre keybindings.json et ajouter:

{ "key":"ctrl+right",       "command":"cursorWordStartRight",       "when":"editorTextFocus" }
{ "key":"ctrl+shift+right", "command":"cursorWordStartRightSelect", "when":"editorTextFocus" }

Cela écrasera les valeurs par défaut:

{ "key":"ctrl+right",       "command":"cursorWordEndRight",       "when":"editorTextFocus" }
{ "key":"ctrl+shift+right", "command":"cursorWordEndRightSelect", "when":"editorTextFocus" }

Veuillez également voir # 832 pour obtenir Ctrl + Suppr de style VS.

Cette page vous a été utile?
0 / 5 - 0 notes