简体   繁体   中英

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 AI have a shortcut CTRL + SHIFT + Z to deploy all files I need to the deploy folder with a shell script. In Project BI 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?

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

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 在此处输入图片说明

在此处输入图片说明 don't forget to assign the jdk

hope it helps

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM