Toskan
Toskan

Reputation: 14931

intellij - keymap / hotkey / shortcut per module / project

I have many projects

I use a hotkey to deploy files built externally to my deploy folder, as intellij is not doing that or is doing that very very unreliably and slowly.

so say in project A I have a shortcut CTRL+SHIFT+Z to deploy all files I need to the deploy folder with a shell script. In Project B I have a different shell script (obviously) to deploy all I need. But I dont want to create a new shortcut, I want to reuse CTRL+SHIFT+Z but that doesn't seem to work

Is there a way to define a shortcut / hotkey on module basis? or a different solution?

Upvotes: 0

Views: 235

Answers (2)

Toskan
Toskan

Reputation: 14931

I just use always the similar ant build file in all projects doing a simple copy, and assign the shortcut to that ant build file:

so in each project I have a build.xml in the root with this content

I guess it works because the "target name" is always the same in each build.xml

<project name="joomlaPHC" default="copy-css" basedir=".">
    <target name="copy-css"
            description="copies css files" >
        <copydir src="/home/myuser/IdeaProjects/MYPROJECT/src/public" dest="/var/www/html/MYPROJECT.local/public"/>
    </target>
</project>

the shortcut seems to work enter image description here

enter image description here don't forget to assign the jdk

hope it helps

Upvotes: 0

Petr Rastegaev
Petr Rastegaev

Reputation: 2089

It is not possible at the moment, you can set several different keyboard layouts and switch them manually. Also there is a feature request to provide project level keymap: https://youtrack.jetbrains.com/issue/IDEA-127090

Upvotes: 1

Related Questions