MelonHell’s gists (original) (raw)
Настройка Claude + IntelliJ IDEA
Зачем это нужно
По умолчанию Claude работает с кодом через костыли: читает файлы как текст, ищет через grep, не видит иерархии классов, не знает какой файл у тебя открыт. Справляется, но с усилием.
С MCP серверами Claude работает через IntelliJ как настоящий разработчик: навигирует по коду через PSI-индекс, находит usages и реализации, управляет дебаггером, видит текущий открытый файл и строку. Меньше контекста руками — больше дела.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
[ Show hidden characters]({{ revealButtonHref }})
| minecraft:black_concrete |
|---|
| minecraft:black_terracotta |
| minecraft:black_wool |
| minecraft:blue_concrete |
| minecraft:blue_terracotta |
| minecraft:blue_wool |
| minecraft:brown_concrete |
| minecraft:brown_terracotta |
| minecraft:brown_wool |
| minecraft:cyan_concrete |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
[ Show hidden characters]({{ revealButtonHref }})
| { |
|---|
| "Color.Window": "#2b2d30", |
| "Color.WindowBorder": "#2b2d30", |
| "Color.TitleBar": "#2b2d30", |
| "Color.ToolBar": "#2b2d30", |
| "Color.Popup": "#2b2d30", |
| "Color.Contents": "#1e1f22", |
| "Color.Badge": "#3574f0", |
| "Color.BadgeFG": "#ffffff", |
| "Color.Conflict": "#45302b", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
[ Show hidden characters]({{ revealButtonHref }})
| import net.kyori.adventure.text.Component; |
|---|
| import net.kyori.adventure.text.format.NamedTextColor; |
| import net.minestom.server.command.CommandSender; |
| import net.minestom.server.command.builder.Command; |
| import net.minestom.server.command.builder.CommandContext; |
| import org.checkerframework.checker.nullness.qual.NonNull; |
| import org.incendo.cloud.execution.CommandResult; |
| import org.jetbrains.annotations.NotNull; |
| import org.jetbrains.annotations.Nullable; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
[ Show hidden characters]({{ revealButtonHref }})
| fun main() { |
|---|
| println(StringHuilder.p.i.d.o.r.a.s.i.n.a) // out: pidorasina |
| } |
| open class StringHuilder( |
| private val huita: String, |
| ) { |
| val a get() = StringHuilder(huita + "a") |
| val b get() = StringHuilder(huita + "b") |
| val c get() = StringHuilder(huita + "c") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
[ Show hidden characters]({{ revealButtonHref }})
| fun line() { |
|---|
| val distance = location1!!.distance(location2!!) |
| val center = Location( |
| location1!!.world, |
| (location1!!.x + location2!!.x) / 2, |
| (location1!!.y + location2!!.y) / 2, |
| (location1!!.z + location2!!.z) / 2 |
| ) |