Goland Run 和 Debug 控制台乱码、出现莫名其妙的空格终极解决方法

avtion · · 2064 次点击 · 开始浏览    置顶
这是一个创建于 的主题,其中的信息可能已经有所发展或是发生改变。

# Goland Run 和 Debug 控制台乱码、出现莫名其妙的空格终极解决方法 我的`Blog`: [Avtion](https://www.avtion.cn) 因为是~~正版~~(学生认证白嫖),所以会习惯性更新 `Goland` ,从而踩到不少坑,这里说一下 `Goland` 控制台(console)出现的问题,包括 `乱码`、`空格`、`显示不全` 的问题 > 版本: `Goland Version 2020.02`(不保证后续版本有效) > ![image-WkcNO3U.png](https://static.studygolang.com/200807/2d286c08e5d792feb9af5bf53ca267fb.png) ## 一. 历史遗留问题:没有关闭 Winodws 的 pty 主要原因:从旧版本升级新版 Goland 使用了旧版的配置文件,导致 pty 没有关闭 1. 打开 `Goland`,菜单栏上打开 `Help` 菜单,并点击 `Find Action`   ![image.png](https://static.studygolang.com/200807/41b5f2f73f8711312f42d470b47f363c.png) 2. 输入 `Registry` 并打开一个选项   ![image-23FsZ2M.png](https://static.studygolang.com/200807/35d1f9fc9fa5efc4c923288a49e31709.png) 3. 找到 `go.run.processes.with.pty` 选项,将其 `disabled` 即可     ![image-7ADNWcE.png](https://static.studygolang.com/200807/a9199d8a20972b8374bb433f651e36d2.png) 4. 重启 `Goland` ## 二、新问题:2020.01 和 2020.02 控制台乱码 主要原因:版本 Bug 1. 菜单栏打开 `File`(MacOS 版本为 `Preference`),然后打开 `Setting`   ![image-Lr9bFAS.png](https://static.studygolang.com/200807/d3cffc7028ddcae28ecd2d526c02177f.png) 3. 找到 `Edit` ,然后再找到 `Console` 选项,将 `Default Enconding` 调整到 `utf-8`   ![image-GU62Hjm.png](https://static.studygolang.com/200807/711bf164ef7925ff463dfede3ecf7057.png) 4. 重启 `Goland` ## 三、仙人指路,授人以鱼不如授人以渔 如果都没有解决,可以访问 [YouTrack](https://youtrack.jetbrains.com/issues?q=project:%20GoLand) 对自己的问题进行搜索

有疑问加站长微信联系(非本文作者)

入群交流(和以上内容无关):加入Go大咖交流群,或添加微信:liuxiaoyan-s 备注:入群;或加QQ群:692541889

2064 次点击  
加入收藏 微博
暂无回复
添加一条新回复 (您需要 登录 后才能回复 没有账号 ?)
  • 请尽量让自己的回复能够对别人有帮助
  • 支持 Markdown 格式, **粗体**、~~删除线~~、`单行代码`
  • 支持 @ 本站用户;支持表情(输入 : 提示),见 Emoji cheat sheet
  • 图片支持拖拽、截图粘贴等方式上传