Posts

Showing posts with the label vscode SOCKS5代理

Valorant requires a restart or loads slowly when entering the game. What can I do? I have an idea.

Valorant is a free first -person tactical shooting game developed by Riot Games, which combines the exact system of arms shooting and heroism. Players will be transformed into agents and will compete for target points using team collaboration, tactical layout and skills cooperation 5V5 offensive and defense stroke. The game has a low economic system and high competitiveness. Before each game start, buy weapons and armor according to tactical needs and use a combination of heroic skills to create the benefits of the battlefield. Its solid ballistic mechanism and map design require players for accurate purposes and tactical decision -making. At the same time, the rich character pool and skill combination give the game a strategic depth. If you have the problems you need to restart or slowly load while playing a "Varorant", try the following systematic solution: Network environment optimization is the main solution. Because valante servers can be introduced abroad, physical dist...

VSCode 设置 SOCKS5 代理的几种方法

Image
VSCode 本身有代理设置界面,但是你会发现,它只支持 HTTP 和 HTTPS 的代理,却不支持我们想要的 SOCKS5 代理,怎么办呢?搜索了一下,发现还是可以使用 SOCKS5 代理的,只是需要稍微迂回一下。 VSCode 的官网帮助文档里有明确的说明,VSCode 使用的是 Chromium 的通信模块。所以,可以像 Chromium 浏览器一样,启动时附带命令行参数(command-line flags),而我们需要的 SOCKS5 代理设置正好可以通过命令行参数来实现。命令行参数写法可参照 Chromium 官方文档:  Configuring a SOCKS proxy server in Chrome 。 Chromium 官方文档里是这么说的: To configure chrome to proxy traffic through the SOCKS v5 proxy server myproxy:8080, launch chrome with these two command-line flags: --proxy-server = "socks5://myproxy:8080" --host-resolver-rules = "MAP * ~NOTFOUND , EXCLUDE myproxy" 官方文档下面还有详细的说明,这里简单解释下,第一行命令是指定代理,第二行命令是为了防止浏览器发送额外的未经代理的 DNS 请求,把所有的 DNS 请求都禁掉(指向不存在的地址),然后仅放行经由代理的请求。 个人感觉配置 VSCode 的话,仅指定代理就可以了,不需要第二行。所以,依样画葫芦,找到 VSCode 的快捷方式,在 “目标” 一栏,后面加上我们的代理命令行参数就可以了。 --proxy-server="socks5://127.0.0.1:6789" 修改好了,保存设置,启动 VSCode 测试了一下,成功。 但是,有两个问题,其实也不能算问题,两种状况吧,尤其对于有强迫症的人来说,可能有点难受😄。 1、这种使用命令行参数的方式并不是适用于任何情况; 2、要想通过固定在任务栏的 VSCode 图标来启动,那么任务栏的 VSCode 图标会出现重复。 第一种情况,比如,一开...

一文教会你 VSCode如何配置SOCKS5代理

Image
方法一、 编辑器页面无法配置 第一个直接的方法是直接通过VSCode的设置进行配置,但是页面提示需要满足http开头的正则才能正确配置上,这样的方式无法配置成功 通过 VSCode github issue 得知VSCode从未支持过SOCK5方式的代理, 跳转到 Network Connections in VSCode 后, 了解到VSCode使用了Chromium网络通信组件, 因此可以尝试Chromium的代理设置 方法二、命令行参数成功配置SOCKS5 翻阅 Chromium network settings ,Chromium通过启动是增加以下命令行参数实现SOCKS代理设置 1 2 --proxy-server="socks5://myproxy:8080" --host-resolver-rules="MAP * ~NOTFOUND , EXCLUDE myproxy" 因此在本地VSCode快捷方式中目标参数增加以上命令项,即可实现VSCode的SOCKS5代理 1 C://****/Code.exe --proxy-server="socks5://myproxy:8080" --host-resolver-rules="MAP * ~NOTFOUND , EXCLUDE myproxy" -