前往小程序,Get更优阅读体验!
立即前往
首页
学习
活动
专区
工具
TVP
发布
社区首页 >专栏 >activate-power-mode 写代码的时候体验狂拽酷炫的效果 (IntelliJ IDEA版安装过程及问题)「建议收藏」

activate-power-mode 写代码的时候体验狂拽酷炫的效果 (IntelliJ IDEA版安装过程及问题)「建议收藏」

作者头像
全栈程序员站长
发布2022-09-14 11:40:42
9030
发布2022-09-14 11:40:42
举报
文章被收录于专栏:全栈程序员必看

大家好,又见面了,我是你们的朋友全栈君。

初遇activate-power-mode

2018更新 power-mode 写代码的时候体验狂拽酷炫的效果 (Visual Studio Code版安装)#2


前一段时间在微信上看到朋友发的这个插件,就收藏了,一直没试试,今天兴致一来突然想起来这么一出,就试试

这是微信原文:

写个Hello Word 而已,要不要这么震撼?! atom上的一个插件,可以让你写代码的时候体验狂拽酷炫的效果

这里写图片描述
这里写图片描述

这货全名叫 activate-power-mode atom package 最新版0.3.2还在继续更新,喜欢就去下载吧 Gitub页面链接 https://github.com/codeinthedark/editor/pull/1 感受一下

这里写图片描述
这里写图片描述


支持的环境

上github一看,已经支持很多ide了,https://github.com/codeinthedark/awesome-power-mode

Awesome Power Mode A curated list of power modes as popularized in https://github.com/codeinthedark/editor/pull/1 by @JoelBesada. Atom https://github.com/JoelBesada/activate-power-mode Brackets https://github.com/Equals182/brackets-power-mode Codemirror https://github.com/chinchang/code-blast-codemirror IDEA https://github.com/ViceFantasyPlace/activate-power-mode JavaScript https://github.com/disjukr/activate-power-mode VIM https://github.com/mattn/vim-particle Visual Studio https://github.com/LiamMorrow/Visual-Studio-Power-Mode Windows https://github.com/if1live/ParticleOnTextCursor XCode https://github.com/poboke/ActivatePowerMode https://github.com/qfish/XActivatePowerMode https://github.com/Dawn-/CoderPower

安装IDEA版

step1 安装插件

只是安装插件的话,只要下载jar包,然后选Preferences -> Plugins -> Install pliugin form disk -> 找到刚才下载的jar包-> OK -> restart IDEA 就好了

这里写图片描述
这里写图片描述

step2 IDEA重启时报错:Unsupported major.minor version 52.0

Plugin ‘com.jiyuanime.ActivatePowerModeApplicationPlugin’ failed to initialize and will be disabled. Please restart IntelliJ IDEA. com.intellij.diagnostic.PluginException: com/jiyuanime/ActivatePowerModeApplicationPlugin : Unsupported major.minor version 52.0 [Plugin: com.jiyuanime.ActivatePowerModeApplicationPlugin] at com.intellij.ide.plugins.cl.PluginClassLoader.b(PluginClassLoader.java:130) at com.intellij.ide.plugins.cl.PluginClassLoader.a(PluginClassLoader.java:77) at com.intellij.ide.plugins.cl.PluginClassLoader.loadClass(PluginClassLoader.java:66) at java.lang.ClassLoader.loadClass(ClassLoader.java:358) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:274) …….

我的环境:

  • Platform: mac os x
  • IntelliJ Version: 14.1.4 Ultimate
  • JDK: java version “1.7.0_79”

在github #issue上得到帮助,后来发现是jdk版本问题:

  • jdk开发时的版本和运行时的版本不一致 会报 Unsupported major.minor version 52.0

解决方法:

  • 又下载了jdk1.8,并安装。(我想同时保有多个jdk环境,如果没这个考虑,升级一下原来的也可以)
  • File -> project structure -> SDKs -> add JDK -> 选安装的jdk1.8所在路径 -> 选刚配的jdk1.8 -> apply
这里写图片描述
这里写图片描述
  • 重新进行step1 然后成功!!!

如果只是要用下这个插件,到这就可以结束了

step3 下载activate-power-mode 源码并编译

  1. 下载源码 bash git clone https://github.com/ViceFantasyPlace/activate-power-mode.git
  2. 如果是下载那个源码自己编译的话,需要装IDEA的SDK File -> project structure -> SDKs -> add IntelliJ Platform Plugin SDK -> 选jdk1.8 -> apply
这里写图片描述
这里写图片描述
  1. 一定要注意:第一次运行如果没有运行配置需要创建一个Plugin Configuration Edit Run/Debug Configurations -> add a new Plugin Configuration -> 在 Use classpath of module 选择 activate-power-mode -> Apply
555
555
666
666
  1. 选择刚配置的activate-power-mode进行编译,如果没有出现 error 则编译成功。
  2. 生成插件 jar 安装包 选择 Build -> Prepare Plugin module … For Deployment 将会生成一个activate-power-mode.jar 的文件在项目根目录下,这样就生成自己的activate-power-mode.jar包了,然后就可以给别人,让别人跟step1一样的步骤安装了

发布者:全栈程序员栈长,转载请注明出处:https://javaforall.cn/159023.html原文链接:https://javaforall.cn

本文参与 腾讯云自媒体同步曝光计划,分享自作者个人站点/博客。
原始发表:2022年7月1,如有侵权请联系 cloudcommunity@tencent.com 删除

本文分享自 作者个人站点/博客 前往查看

如有侵权,请联系 cloudcommunity@tencent.com 删除。

本文参与 腾讯云自媒体同步曝光计划  ,欢迎热爱写作的你一起参与!

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
目录
  • 初遇activate-power-mode
    • 支持的环境
      • 安装IDEA版
        • step1 安装插件
        • step2 IDEA重启时报错:Unsupported major.minor version 52.0
      • step3 下载activate-power-mode 源码并编译
      领券
      问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档