安装 idea 插件:

进入配置页面: File>setting>Plugins

搜索: Current date generator

安装插件并重启idea

设置 快捷键

setting>keymap>plugin>…date…generator

https://plugins.jetbrains.com/plugin/9722-current-date-generator