shift-mouse text selection selects only ending bracket.
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 15.2k
- Forks
- 1.5k
- Avg merge
- 3d 18h
- Merged PRs (30d)
- 6
Description
Describe the bug
When I select the end of the line (single mouse-click) and shift+mouse-click the beginning (or middle) of the line (or lines above), vscode only selects the character at the end of the line, where the first click is happened. This only occurs when the ending character is bracket.
I have to shift mouse-click again to select the lines that I actually wanted.
To Reproduce
Steps to reproduce the behavior:
- single mouse-click at the end of a line.
- shift mouse-click the beginning or middle of the line or lines above
Expected behavior
Selecting line block(s) at step 2).
Screenshots

Environment (please complete the following information):
I've erased every package and tested it, but this happened only when the vscodvim is installed.
"vim.mouseSelectionGoesIntoVisualMode": false, // I've tried true
"vim.incsearch": true,
"vim.useSystemClipboard": false,
"vim.useCtrlKeys": true,
"vim.hlsearch": true,
"vim.statusBarColorControl": true,
"vim.statusBarColors.normal": ["#8FBCBB", "#434C5E"],
"vim.statusBarColors.insert": "#BF616A",
"vim.statusBarColors.visual": "#B48EAD",
"vim.statusBarColors.visualline": "#B48EAD",
"vim.statusBarColors.visualblock": "#A3BE8C",
"vim.statusBarColors.replace": "#D08770",
"vim.statusBarColors.commandlineinprogress": "#007ACC",
"vim.statusBarColors.searchinprogressmode": "#007ACC",
"vim.statusBarColors.easymotionmode": "#007ACC",
"vim.statusBarColors.easymotioninputmode": "#007ACC",
"vim.statusBarColors.surroundinputmode": "#007ACC",
"vim.insertModeKeyBindings": [
{
"before": [
"j",
"j"
],
"after": [
"<Esc>"
]
}
],
"vim.normalModeKeyBindingsNonRecursive": [
{
"before": [
"<leader>",
"."
],
"after": [],
"commands": [
{
"command": ":nohl"
}
]
},
{
"before": [
"<C-n>"
],
"commands": [
":nohl"
]
},
{
"before": [
"K"
],
"commands": [
"lineBreakInsert"
],
"silent": true
},
{
"before": [
"u"
],
"commands": [
"undo"
]
},
{
"before": [
"<C-r>"
],
"commands": [
"redo"
]
}
],
"vim.leader": "<space>",
"vim.handleKeys": {
"<C-a>": false,
"<C-f>": false
},
"vim.searchHighlightColor": "#5a5a5a",
"vim.searchMatchColor": "#5a5a5a",
"vim.surround": false, // I've tried true
- Extension (VsCodeVim) version: 1.23.2
- VSCode version: 1.70.2
- OS: macOS Monterey 12.5.1
Additional context
Add any other context about the problem here.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
No source files or tests are named. Reproduce the issue with VsCodeVim 1.23.2 on VS Code 1.70.2 using the listed mouse-selection settings, then locate the mouse and shift-click selection handling. Done means shift-click selects the intended line range even when the first line ends with a bracket, with a regression test for that case.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript, vscode
- Domain
- devtools
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100