shuzijun / leetcode-editor

Do Leetcode exercises in IDE, support leetcode.com and leetcode-cn.com, to meet the basic needs of doing exercises.Support theoretically: IntelliJ IDEA PhpStorm WebStorm PyCharm RubyMine AppCode CLion GoLand DataGrip Rider MPS Android Studio
https://plugins.jetbrains.com/plugin/12132-leetcode-editor
Apache License 2.0
3.7k stars 399 forks source link

golang代码编辑过程中的bug #722

Open miller-star opened 1 month ago

miller-star commented 1 month ago

Describe the bug

https://github.com/shuzijun/leetcode-editor/assets/45729654/6aa3bf88-268a-43c7-b7bf-0995500fff31

回车后,中括号对齐错误 另外,没有代码提示补全

Software versions(Help -> About)

zhougongjin555 commented 4 weeks ago

确实,goland 使用插件没有代码检查 也没有正确的格式缩进,另外有时候点一个题目半天不打开,要点好多次才行,开关代理都不行

miller-star commented 3 weeks ago

确实,goland 使用插件没有代码检查 也没有正确的格式缩进,另外有时候点一个题目半天不打开,要点好多次才行,开关代理都不行

idea中没有这种问题吗

shuzijun commented 3 weeks ago

这个和插件无关,默认插件生成的文件是在临时文件里,没有项目结构和sdk相关的信息,所以编辑器无法正常解析。 建议参照介绍里的自定义代码功能,创建一个单独的项目,配置好相关的代码结构,例如go 在文件最上方增加一下 package xxxx

zhougongjin555 commented 3 weeks ago

这个和插件无关,默认插件生成的文件是在临时文件里,没有项目结构和sdk相关的信息,所以编辑器无法正常解析。 建议参照介绍里的自定义代码功能,创建一个单独的项目,配置好相关的代码结构,例如go 在文件最上方增加一下 package xxxx

感谢大佬的回复,我按照您的方法照做,确实可以在写代码的时候正确缩进代码了