IntelliJ的反编译按钮(将Kotlin代码转换为Java)在哪里?

huangapple go评论64阅读模式
英文:

Where is the IntelliJ Decompile Button (Converting Kotlin Code to Java)?

问题

我有一个 Kotlin 项目,我想使用 IntelliJ 将其转换为 Java 代码。现在我在 这里 看到,我只需要执行以下步骤:

  1. 菜单 > 工具 > Kotlin > 显示 Kotlin 字节码
  2. 点击“反编译”按钮
  3. 复制 Java 代码

所以我试着按照这个步骤去做,并且已经成功查看了 Kotlin 字节码 - 但是我想知道反编译按钮在哪里?不幸的是,我在谷歌上搜索过,但找不到它 - 或许我只是眼瞎,它很明显?

当我进入 工具 > Kotlin,然后 反编译 Kotlin 为 Java 选项是灰色的(如果那就是到处提到的反编译按钮)。

有人能帮助我解决这个问题吗?

我正在使用 IntelliJ Ultimate。


编辑:

当我点击“显示 Kotlin 字节码”时,会显示如下面板:

IntelliJ的反编译按钮(将Kotlin代码转换为Java)在哪里?

英文:

I have a Kotlin project that I'd like to convert into Java-Code using IntelliJ. Now I read that all I need to do is:

  1. Menu > Tools > Kotlin > Show Kotlin Bytecode
  2. Click on the Decompile button
  3. Copy the java code

So I tried to follow that and have been able to successfully view Kotlin Bytecode - yet I am wondering where the decompile Button is? Sadly I tried searching it in Google and I could not find it - probably I am just blind and it is obvious?

When I go into Tools > Kotlin then Decompile Kotlin to Java is greyed (in case that is the decompile button that is mentioned everywhere).

Can someone help me out on that?

I am running on IntelliJ Ultimate.


Edit:

This panel is shown when I press Show Kotlin Bytecode:

IntelliJ的反编译按钮(将Kotlin代码转换为Java)在哪里?

答案1

得分: 1

Decompile按钮位于Kotlin Bytecode面板的顶部工具栏中,当您选择Show Kotlin Bytecode时会打开该面板。

英文:

The Decompile button is in the top bar of the Kotlin Bytecode panel which opens when you select Show Kotlin Bytecode.

huangapple
  • 本文由 发表于 2020年10月5日 21:41:40
  • 转载请务必保留本文链接:https://go.coder-hub.com/64209840.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定