You are not logged in.

#1 2019-07-10 10:30:20

Gabriel-Costa
Member
Registered: 2019-04-04
Posts: 24

[SOLVED] Multiple cursors Code OSS

Hi there, I can't configure multiple cursors in Code OSS, my enviornment  is Openbox. I think there is some conflict with drag-window short cut, and I tried to change this configuration in my  rc.xml file to do it with Ctrl + lefmouse, instead of Alt + leftmouse, but didn work, this is my rc.xml <mousebind>.

 
<mousebind button="A-Left" action="Press">
        <action name="Focus"/>
        <action name="Raise"/>
      </mousebind>
      <mousebind button="A-Left" action="Click">
        <action name="Unshade"/>
      </mousebind>
	<!-- DRAG CTRL + LEFT RATO ( foi alterado Alt + Left )-->
      <mousebind button="A-Left" action="Drag">
        <action name="Move"/>
      </mousebind>
      <mousebind button="A-Right" action="Press">
        <action name="Focus"/>
        <action name="Raise"/>
        <action name="Unshade"/>
      </mousebind>
      <mousebind button="A-Right" action="Drag">
        <action name="Resize"/>
      </mousebind>
      <mousebind button="A-Middle" action="Press">
        <action name="Lower"/>
        <action name="FocusToBottom"/>
        <action name="Unfocus"/>
      </mousebind>
      <mousebind button="A-Up" action="Click">
        <action name="GoToDesktop">
          <to>previous</to>
        </action>
      </mousebind>
      <mousebind button="A-Down" action="Click">
        <action name="GoToDesktop">
          <to>next</to>
        </action>
      </mousebind>
      <mousebind button="C-A-Up" action="Click">
        <action name="GoToDesktop">
          <to>previous</to>
        </action>
      </mousebind>
      <mousebind button="C-A-Down" action="Click">
        <action name="GoToDesktop">
          <to>next</to>
        </action>
      </mousebind>
      <mousebind button="A-S-Up" action="Click">
        <action name="SendToDesktop">
          <to>previous</to>
        </action>
      </mousebind>
      <mousebind button="A-S-Down" action="Click">
        <action name="SendToDesktop">
          <to>next</to>
        </action>
      </mousebind>
    </context>
    <context name="Titlebar">
      <mousebind button="Left" action="Drag">
        <action name="Move"/>
      </mousebind>
      <mousebind button="Left" action="DoubleClick">
        <action name="ToggleMaximize"/>
      </mousebind>

And I tried to change the configurations in the Code OSS as well, changing the keys for multiple cursors but also didn't work.

I'm not sure if is missing any package in my system that could fix it...

Thanks.

Last edited by Gabriel-Costa (2019-07-12 07:05:11)

Offline

#2 2019-07-10 11:10:36

Lone_Wolf
Administrator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 15,401

Re: [SOLVED] Multiple cursors Code OSS


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.

clean chroot building not flexible enough ?
Try clean chroot manager by graysky

Offline

#3 2019-07-10 12:31:42

Gabriel-Costa
Member
Registered: 2019-04-04
Posts: 24

Re: [SOLVED] Multiple cursors Code OSS

I'm using https://www.archlinux.org/packages/comm … 6_64/code/, from official Arch Linux repos.

Offline

#4 2019-07-11 09:08:23

Lone_Wolf
Administrator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 15,401

Re: [SOLVED] Multiple cursors Code OSS

Ok, mousecursors and other visual settings are usually set through themes .

Are you running pure openbox or a Desktop environment that uses openbox as window manager (lxqt & lxde are 2 examples of that) ?

If pure openbox, obconf is usually the best choice to configure visual stuff, but there are other options.
See https://wiki.archlinux.org/index.php/Openbox#Themes


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.

clean chroot building not flexible enough ?
Try clean chroot manager by graysky

Offline

#5 2019-07-11 11:00:40

Ropid
Member
Registered: 2015-03-09
Posts: 1,069

Re: [SOLVED] Multiple cursors Code OSS

Lone_Wolf wrote:

Ok, mousecursors and other visual settings are usually set through themes .[...]

He's talking about the multiple cursor feature in the VSCode text editor. If you don't know what "multiple cursor" is about, here's an animation I found showing the feature:

https://user-images.githubusercontent.c … 67551c.gif

Offline

#6 2019-07-11 11:22:55

Gabriel-Costa
Member
Registered: 2019-04-04
Posts: 24

Re: [SOLVED] Multiple cursors Code OSS

Lone_Wolf wrote:

If pure openbox, obconf is usually the best choice to configure visual stuff, but there are other options.
See https://wiki.archlinux.org/index.php/Openbox#Themes

Yes, I'm using pure openbox, and I have looked to obconf as you suggested, and I couldn't find nothing.

And I saw the link  https://wiki.archlinux.org/index.php/Openbox#Themes, I haven't found any information related to that, or at least I don't understand if any of those informations could help me on that.

Offline

#7 2019-07-11 17:19:54

Lone_Wolf
Administrator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 15,401

Re: [SOLVED] Multiple cursors Code OSS

Thanks to Ropid I realised I misunderstood what Gabriel-Costa means with "multiple cursors" in the CODE editor.

It appears to be a multiline selection selection mode that allows moving the cursor simultaneously on multiple lines.

Gabriel-Costa , in Code editor selection menu there's an option "Switch to ctrl+click for Multi-Cursor" .
Does multi-cursor work if you use that option ?

Last edited by Lone_Wolf (2019-07-11 17:20:31)


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.

clean chroot building not flexible enough ?
Try clean chroot manager by graysky

Offline

#8 2019-07-12 07:04:08

Gabriel-Costa
Member
Registered: 2019-04-04
Posts: 24

Re: [SOLVED] Multiple cursors Code OSS

Lone_Wolf, yes that did the trick, clicking in option  selection > "Switch to ctrl+click for Multi-Cursor".

So I was play a little with this to understand how this works and I realize that this can be done in two diferent ways, the first one is has Lone_Wolf said, and the second is doing the configuration manually in file  ".config/Code - OSS/User/settings.json", by adding this line to your JSON data,

"editor.multiCursorModifier": "ctrlCmd"

, actually this what you are doing when clicking the option  "Switch to ctrl+click for Multi-Cursor".

These informations can be found at:

https://code.visualstudio.com/docs/editor/codebasics

https://code.visualstudio.com/docs/getstarted/settings

Lone_Wolf and Ropid thank you for you time helped a lot.

Offline

Board footer

Powered by FluxBB