【问题标题】:make intellij sometimes stop at underscores and sometimes not使 intellij 有时停在下划线处,有时不停在下划线处
【发布时间】:2018-05-04 03:11:55
【问题描述】:

有时我想选择包括下划线在内的所有内容,有时我不想。我希望能够使用热键或类似功能来操纵该行为

https://intellij-support.jetbrains.com/hc/en-us/community/posts/207073835-Where-to-set-word-boundaries-for-Ctrl-Arrow

存在全局启用或禁用它的设置,但这对我没有帮助

有时我希望它在 _ 上停止,有时我不想。

只是一个例子: 我有这个代码行:

      $this->wp_user->remove_role(MOTR_USER_ROLE_ORGANIZATION_TEMP);

我想补充:

      $this->wp_user->add_role(MOTR_USER_ROLE_ORGANIZATION_ACTIVE);

现在,如果启用了在下划线处停止,我必须多次单击才能到达最后的 _TEMP。但是如果它被禁用,我还必须单击很多以从函数调用中删除remove_。我想使用插件或类似工具来操纵该行为。有这样的东西吗?

【问题讨论】:

    标签: intellij-idea


    【解决方案1】:

    https://plugins.jetbrains.com/plugin/194-toggle-camel-humps 似乎可以工作,您需要更改键盘映射中的绑定,尽管默认分配给 ctrl+shift+a,这在我的情况下已经在使用

    【讨论】:

      猜你喜欢
      • 2013-04-15
      • 2014-08-30
      • 2013-05-26
      • 2021-01-22
      • 1970-01-01
      • 1970-01-01
      • 2014-04-12
      • 2018-02-17
      • 2015-02-07
      相关资源
      最近更新 更多