clojure-lsp-intellij icon indicating copy to clipboard operation
clojure-lsp-intellij copied to clipboard

Extend selection not working correctly when having multiple lines

Open afucher opened this issue 6 months ago • 0 comments
trafficstars

Describe the bug When using the Extend Selection (opt + UP) feature in a form that contains more than one line, it is not selecting only the form but also the begin of the line

To Reproduce Steps to reproduce the behavior:

  1. Add the following code
(def a
  (do (println "")
      (println "")))
  1. Put the cursor inside the form println form
  2. Extend the selection until the do form
  3. Check that the whitespace in the begin of the line is also selected

Expected behavior Select only the form () not the entire line.

Screenshots Image

With Calva this not occurs (shortcut is Ctrl+W) Image

Desktop (please complete the following information):

  • OS: Mac OS
  • Intellij version: IntelliJ IDEA 2023.3.8 (Community Edition)
  • Plugin version: 3.4.0

Additional context

  • It also happens for maps
  • Calva has a more granular selection, would be good to have the same behavior

afucher avatar Apr 23 '25 19:04 afucher