Hello @周 瑶,
Welcome to Microsoft Q&A forum.
There are several scenarios.
For string in code between quotes like Console.WriteLine("abcde abcd");
The first scenario:
Focus cursor on abcde
, press Ctrl + W
, the word abcde
will be selected.
Focus cursor on abcd
, press Ctrl + W
, the word abcd
will be selected.
The second scenario:
Focus cursor on abcde
, press Alt + Shift + =
, the string with quotes "abcde abcd"
will be selected.
Focus cursor on abcd
, press Alt + Shift + =
, the string with quotes "abcde abcd"
will be selected.
The third scenario:
Focus cursor on abcde
, but before character a
, press Alt + Shift + Right Arrow
, character a
will be selected, continue pressing Alt + Shift + Right Arrow
, characters ab
will be selected…
Please feel free to let us know if you have any further concerns.
Sincerely,
Tianyu
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.