簡體   English   中英

VS 代碼跳轉到一個符號,但 cursor 運動立即將焦點帶回原始 cursor position

[英]VS Code jump to a symbol but a cursor movement immediately brings focus back to original cursor position

它工作正常。 但是今天變成了這樣,VS Code 版本是 1.63.2。

設想:

  1. 我按Ctrl+Shift+O調出快速命令面板以在當前文件中搜索符號。
  2. 我輸入符號,符號被找到並突出顯示。
  3. 我按下 ENTER,焦點跳轉到目標 position,cursor 也在那里可見。
  4. 當我使用VSCodeVim擴展時,只要按下 cursor 移動鍵,例如RIGHThjkl鍵,cursor 就會立即回到原來的 Z4757FE07FD492A8BE0EA6 之前的符號。

animation:

  • cursor 的初始 position 位於第 1 行。
  • 然后我做了一個“跳轉到符號”,將焦點帶到第 530 行。
  • 但只要我“移動光標”,它就會回到第 1 行。

VSCode 光標實際上並未移動到找到的符號位置

不確定哪個擴展是罪魁禍首。 以下是我的擴展:

> code --list-extensions
alefragnani.Bookmarks
azemoh.one-monokai
cschlosser.doxdocgen
dbaeumer.vscode-eslint
eamodio.gitlens
GitHub.copilot
golang.go
jebbs.plantuml
jeff-hykin.better-cpp-syntax
llvm-vs-code-extensions.vscode-clangd  
mark-wiemer.vscode-autohotkey-plus-plus
mjohns.clang-format
ms-python.python
ms-python.vscode-pylance
ms-toolsai.jupyter
ms-toolsai.jupyter-keymap
ms-toolsai.jupyter-renderers
ms-vscode-remote.remote-containers     
ms-vscode-remote.remote-ssh
ms-vscode-remote.remote-ssh-edit       
ms-vscode-remote.remote-wsl
ms-vscode.cmake-tools
ms-vscode.cpptools
ms-vscode.cpptools-themes
ms-vscode.powershell
streetsidesoftware.code-spell-checker  
twxs.cmake
vadimcn.vscode-lldb
vscodevim.vim
zero-plusplus.vscode-autohotkey-debug

可能是自動熱鍵擴展? 那或 vim 將落入此錯誤的 scope 中。 如果禁用這些不起作用,請在 GitHub 中發布問題

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM