首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >VS代码PowerShell扩展intellisense非常慢

VS代码PowerShell扩展intellisense非常慢
EN

Stack Overflow用户
提问于 2018-08-15 13:29:19
回答 1查看 3K关注 0票数 6

VS代码PowerShell智能感知突然变得非常缓慢对我来说。有几天很好用。我已经卸载了所有的扩展,除了一个用于PowerShell的。

以下是有关VS代码的详细信息。

代码语言:javascript
复制
Version: 1.28.2 (user setup)
Commit: 7f3ce96ff4729c91352ae6def877e59c561f4850
Date: 2018-10-17T00:23:51.859Z
Electron: 2.0.9
Chrome: 61.0.3163.100
Node.js: 8.9.3
V8: 6.1.534.41
Architecture: x64

下面是PowerShell的用户设置:

“"powershell.codeFormatting.ignoreOneLineBlock":”:"powershell.bugReporting.project":"https://github.com/PowerShell/vscode-powershell","powershell.codeFolding.enable":true,"powershell.codeFormatting.whitespaceAfterSeparator":true,"powershell.codeFormatting.newLineAfterCloseBrace":true,"powershell.codeFormatting.newLineAfterOpenBrace":true,"powershell.codeFormatting.openBraceOnSameLine":true,"powershell.codeFormatting.preset":"Custom",“powershell.codeFormatting.whitespaceAfterSeparator”:true,"powershell.codeFormatting.whitespaceAroundOperator":true,"powershell.codeFormatting.whitespaceBeforeOpenBrace":true,"powershell.codeFormatting.whitespaceBeforeOpenParen":true,"powershell.debugging.createTemporaryIntegratedConsole":false,"powershell.developer.bundledModulesPath":“"powershell.developer.editorServicesLogLevel":”Normal,"powershell.developer.editorServicesWaitForDebugger":false,"powershell.developer.featureFlags":[],"powershell.developer.powerShellExeIsWindowsDevBuild":false,"powershell.developer.powerShellExePath":"","powershell.enableProfileLoading":true,"powershell.helpCompletion":"BlockComment","powershell.integratedConsole.showOnStartup":true,"powershell.powerShellAdditionalExePaths":[],"powershell.powerShellDefaultVersion":"","powershell.powerShellExePath":"","powershell.scriptAnalysis.enable":true,"powershell.scriptAnalysis.settingsPath":"","powershell.startAutomatically":true,"powershell.useX86Host":false

有人有建议吗?

EN

回答 1

Stack Overflow用户

发布于 2018-10-25 21:02:08

由于重新安装VSCode没有帮助,这可能是powershell的一些问题。

很少有事情要考虑。我曾经经历过一些滞后于intellisense/ps的加载,因为有些模块文件夹位于网络驱动器上。我没有找到更好的解决方案,而不是在本地复制所有模块。

在Win 7上从v3升级到v5后,我对PS有很大的问题,它几乎停止工作了。降级于事无补。令人惊讶的是,如果我以不同用户的身份登录,它会很好地工作,所以我只是删除并重新创建了我的配置文件,这很有帮助。以不同的用户登录,并查看其工作方式是否不同。

我使用带有powershell内核(pwsh)的linux机器上的VSCode作为ISE的替代方案。它工作得很好,而且我在VSCode上的版本与您相同。尝试在您的计算机上安装powershell核心,然后切换VSCode以代替5.0 https://learn.microsoft.com/en-us/powershell/scripting/core-powershell/vscode/using-vscode?view=powershell-6#using-a-specific-installed-version-of-powershell

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/51859676

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档