Vibe Coding教程 - 疑难杂症篇

感谢各位大佬的相关教程,能记住出处的均已标注

[如用冲突以这两个为准]直链网页:点击访问
[如用冲突以这两个为准]GitHub共建文档: 点击访问
L站合贴:点击访问

为什么分多个呢...

Vibe Coding - 疑难杂症部分

疑难杂症

通用

乱码解决办法

点击访问原帖

7 在 Documents\PowerShell

旧版在 Documents\WindowsPowerShell

修改Microsoft.PowerShell_profile.ps1


# PowerShell UTF-8 编码配置 - 极简版

[Console]::OutputEncoding = [System.Text.Encoding]::UTF8

[Console]::InputEncoding = [System.Text.Encoding]::UTF8

chcp 65001 | Out-Null

Claude Code for VS Code

1. 侧边栏不显示

摁住cmd+shift+p 输入claude搜索,选择 open in side bar

无法使用第三方API

编辑(或者新增)~/.claude/config.json


{

"primaryApiKey": "default"

}

修改配置后重启!!!

Codex

1. 登录问题:以一种访问权限不允许的方式做了一个访问套接字的尝试。 (os error 10013)

点击访问原帖

1.使用管理员启动CMD

2.依次运行

netsh int ipv4 set dynamicport tcp start=49152 num=16384

netsh int ipv6 set dynamicport tcp start=49152 num=16384

3.重启电脑

2. 更新插件后导致历史的会话“丢失”

点击访问原帖

安装回原版本或临近的版本,历史会话记录就会找到,但是新的插件版本中的会话同样会丢失

VS Code 的插件镜像网站: https://vsc-extension.dreamsoul.cn/

3. 不能直接选择思考级别

config.toml 配置中添加 requires_openai_auth = true

4. 模型 gpt-5-codex 文件编辑的方式 bug

config.toml 配置中添加 requires_openai_auth = true

5. CLI 切换模型相关问题

通过启动参数指定模型进入交互模式:


codex -m gpt-5-codex

6. Codex模型写脚本改代码?

点击访问原帖

原因:

猜测是codex模型就是基于gpt5模型的coding数据sft出来的模型,所以openai很自信的认为已经不需要提示它使用apply_patch了,但结果很明显,codex模型根本不知道还有一个apply_patch工具被hook在了shell工具之中,导致tool定义里没有apply_patch的时候,是完全不知道可以使用apply_patch的。

补上提示词:


# Text Editing Tools

When performing text editing, must use the `apply_patch` tool instead of running temporary scripts with Python commands to edit files (e.g `{"command":["apply_patch","*** Begin Patch\n*** Add File: test.txt\n+test\n*** End Patch\n"],"workdir":"<workdir>","justification":"Create file test.txt"}`)

只需要添加上apply_patch的调用例子,并且强调应该使用apply_patch进行文件修改,应该就和gpt5模型行为对齐了。

64 个赞

教程三 mark

3 个赞

前排前排~

3 个赞

我勒个豆,还有3 啊

1 个赞

太强了,还有后续

2 个赞

对,本来打算两个的,结果…第二个也超了

1 个赞

感谢佬友分享 :folded_hands:

1 个赞

前排支持

1 个赞

先赞后看 :laughing:

2 个赞

w 奇怪的第三贴喵~ 难道是 tid[2] 吗(逃

2 个赞

好文章,收藏了!

1 个赞

直接 15 分到手,获赞等点数另算 :joy:

3 个赞

收藏了就是会了

:laughing:

1 个赞

前排支持,标记!

1 个赞

佬太强了!!!

1 个赞

好资源,都整合起来

1 个赞
let vibecodoing
let num = 总字数

for(i=1;i<100;i++){

  if(num%i<60000){
  break;
  }

}
i=['1','2']

嘿嘿,强制赋值=2

2 个赞

猫还以为从0开始数了呢(瘫

w 分号 缩进(盯

好想 alt+shift+F 喵~(逃

2 个赞

教程IV

2 个赞

非常不错嗷

1 个赞