jednano / vscode-tabsanity

Arrow-key navigation through soft tabs as if they were hard tabs.
MIT License
12 stars 2 forks source link

Editor doesn't scroll when cursor jumped to the end of long line while shift key is held #22

Open vanowm opened 2 years ago

vanowm commented 2 years ago

Type: Bug

  1. have a very long line that requires horizontal scroll
  2. place cursor on the line below, at column 0
  3. Hold Shift key and press Arrow Left key
  4. The cursor jumps to the end of the long line above, but editor doesn't scroll to it.

Almost same effect can be seen when cursor is placed at the beginning of the long line and pressed Shift + End keys. If cursor initially placed at column 5 or higher, it scrolls a few pixels depending on the start column position.

Extension version: 0.0.11 VS Code version: Code 1.70.2 (e4503b30fc78200f846c62cf8091b76ff5547662, 2022-08-16T05:35:13.448Z) OS version: Windows_NT x64 10.0.19044 Modes:

System Info |Item|Value| |---|---| |CPUs|Intel(R) Core(TM) i9-9900K CPU @ 3.60GHz (16 x 3600)| |GPU Status|2d_canvas: enabled
canvas_oop_rasterization: disabled_off
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
multiple_raster_threads: enabled_on
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
skia_renderer: enabled_on
video_decode: enabled
video_encode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled| |Load (avg)|undefined| |Memory (System)|31.93GB (20.16GB free)| |Process Argv|--verbose| |Screen Reader|no| |VM|50%|
ivan commented 2 years ago

vscode has this now which can be used instead:

"editor.stickyTabStops": true,

"If you prefer to indent your code with spaces, there is a new setting called editor.stickyTabStops, which makes VS Code treat cursor movements in leading spaces similar to tabs." https://github.com/microsoft/vscode-docs/blob/7bdaf30689a2352238048150da7087cc6857ca72/release-notes/v1_52.md#sticky-tab-stops-when-indenting-with-spaces…

vanowm commented 2 years ago

Basically, this setting makes this extension obsolete.