izhangzhihao / intellij-rainbow-brackets

🌈Rainbow Brackets for IntelliJ based IDEs/Android Studio/HUAWEI DevEco Studio/Fleet
https://plugins.jetbrains.com/plugin/10080-rainbow-brackets
GNU General Public License v3.0
4.47k stars 215 forks source link

Scope highlighting not working for ctrl +secondary click on mac Rider #2575

Closed resting closed 1 year ago

resting commented 1 year ago

Your programming languages

TSX

Expected Behavior

Scope highlighting should work for both alt + secondary click and ctrl + secondary click style.

Current Behavior

Only alt + secondary click is working currently.

Code snippet for reproduce (for bugs)

App.tsx

import {useState} from 'react'
import reactLogo from './assets/react.svg'
import './App.css'

function App() {
  const [count, setCount] = useState(0)

  const body = new Array(100).fill('a');
  return (
    <div className="App">
      <table>
        <thead>
        <tr>
          <th>head1</th>
          <th>head2</th>
          <th>head3</th>
        </tr>
        </thead>

        <tbody>
        {body.map((b, i) => {
          return (
            <tr key={i}>
              <td>cell1</td>
              <td>cell2</td>
              <td>cell3</td>
            </tr>
          )
        })}
        </tbody>
      </table>
    </div>
  )
}

export default App

Your Environment

JetBrains Rider 2022.3
Build #RD-223.7571.232, built on December 6, 2022
Licensed to 
Subscription is active until March 20, 2023.
Runtime version: 17.0.5+1-b653.14 x86_64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
macOS 12.2
.NET 7.0.0 (Server GC)
GC: G1 Young Generation, G1 Old Generation
Memory: 8192M
Cores: 4
Metal Rendering is ON
Registry:
    ide.balloon.shadow.size=0
    platform.projectModel.workspace.model.file.index=false
    vcs.empty.toolwindow.show=false
    ide.workspace.model.rbs.as.tree=false
    ide.new.project.model.index.case.sensitivity=true
    rdclient.asyncActions=false
    indexing.enable.entity.provider.based.indexing=false

Non-Bundled Plugins:
    ua.in.dej.myEmmet (1.2.5)
    com.mroche.JsonHelper (1.2.0)
    ru.adelf.idea.dotenv (2022.3)
    com.intellij.ideolog (203.0.30.0)
    carbon-now-sh (1.3.0)
    com.rmondjone.jsontotypescript (1.3.2)
    com.bluewaitor.tsReact (1.4.0)
    com.jetbrains.rider.android (223.7571.232)
    some.awesome (1.14)
    com.fernandojimenez.mattecarbon.theme (3.0.0)
    Abc.MoqComplete.Rider (2022.3.0.2)
    AceJump (3.8.10)
    me.seclerp.rider.plugins.efcore (223.2.0)
    com.intellij.resharper.StructuredLogging (2022.3.0.276-eap07)
    izhangzhihao.rainbow.brackets (2022.3.5)
    com.deadlock.scsyntax (223.7571.142)
    intellij.vitejs (223.7571.142)
    intellij.prettierJS (223.7571.142)
    IdeaVIM (2.0.0)
    org.jetbrains.IdeaVim-EasyMotion (1.10)
    zielu.gittoolbox (213.10.5)
    mobi.hsz.idea.gitignore (4.4.4)
open-collective-bot[bot] commented 1 year ago

Hey @resting :wave:,

Thank you for opening an issue/feature request. We will get back to you as soon as we can.

Please consider support us by buying a license here or donating from OpenCollective https://opencollective.com/intellij-rainbow-brackets.

And we have a special plan for paid users, if you are a paid user, your issue or feature request will have a higher priority.

If you are creating a issue, please make sure you already read the latest change log here.

izhangzhihao commented 1 year ago

Hi, mac needs to use Meta+ Button3, in which Meta is the command and Button3 means "Secondary Click (click or tap with two fingers)" on Mac os.

I tested on my env, it works well.

JetBrains Rider 2022.3
Build #RD-223.7571.232, built on December 6, 2022
Runtime version: 17.0.5+1-b653.14 x86_64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
macOS 12.6.2
.NET 7.0.0 (Server GC)
GC: G1 Young Generation, G1 Old Generation
Memory: 1500M
Cores: 16
Metal Rendering is ON
Registry:
    ide.plugins.snapshot.on.unload.fail=true
    ide.experimental.ui=true
    indexing.enable.entity.provider.based.indexing=false
    rdclient.asyncActions=false
    platform.projectModel.workspace.model.file.index=false
    vcs.empty.toolwindow.show=false
    database.show.search.tab=false
    ide.workspace.model.rbs.as.tree=false
    ide.new.project.model.index.case.sensitivity=true

Non-Bundled Plugins:
    com.jetbrains.rider.android (223.7571.232)
    izhangzhihao.rainbow.brackets (2022.3.5)
resting commented 1 year ago

Got it thanks, just to confirm cmd + secondary click works fine :)