gpt4 book ai didi

VSCode quick import work with ctrl + space, but not with ctrl + . with Vite + React project(VSCode快速导入可使用ctrl+空格,但不能使用ctrl+。使用VITE+Reaction项目)

转载 作者:bug小助手 更新时间:2023-10-24 22:31:38 26 4
gpt4 key购买 nike



as above, project initialized with yarn + vite + react
OS: win 10 pro

如上所述,项目用纱线+VITE+REACT操作系统初始化:Win 10 PRO


This is file structure:

这是文件结构:


enter image description here


vite.config.js:

Vite.config.js:


import { defineConfig } from 'vite'
import react from '@vitejs/plugin-react'

export default defineConfig({
plugins: [react()],
});

jsconfig.json

Jsconfig.json


{
"compilerOptions": {
"module": "commonjs",
"target": "es6",
"baseUrl": ".",
"paths": {
"@/*": ["src/*"]
},
},
"exclude": ["node_modules"],
}

List of extensions:

扩展名列表:


amazonwebservices.aws-toolkit-vscode
Angular.ng-template
burkeholland.simple-react-snippets
bysabi.prettier-vscode-standard
christian-kohler.npm-intellisense
christian-kohler.path-intellisense
dbaeumer.vscode-eslint
donjayamanne.githistory
dsznajder.es7-react-js-snippets
eamodio.gitlens
EditorConfig.EditorConfig
elltg.elltg-npm-script-run
esbenp.prettier-vscode
firefox-devtools.vscode-firefox-debug
formulahendry.code-runner
geddski.macros
GitHub.copilot
Gydunhn.angular-essentials
Gydunhn.javascript-essentials
Gydunhn.typescript-essentials
infeng.vscode-react-typescript
iulian-radu-at.find-unused-exports
johnpapa.angular-essentials
johnpapa.Angular2
johnpapa.pwa-tools
johnpapa.vscode-peacock
johnpapa.winteriscoming
mgmcdermott.vscode-language-babel
Mikael.Angular-BeastCode
ms-python.black-formatter
ms-python.python
ms-python.vscode-pylance
ms-vscode-remote.remote-wsl
ms-vscode.cmake-tools
ms-vscode.cpptools
ms-vscode.cpptools-extension-pack
ms-vscode.cpptools-themes
ms-vsliveshare.vsliveshare
natewallace.angular2-inline
nrwl.angular-console
NuclleaR.vscode-extension-auto-import
numso.prettier-standard-vscode
odubuc.mysql-inline-decorator
PKief.material-icon-theme
pmneo.tsimporter
redhat.vscode-commons
redhat.vscode-yaml
steoates.autoimport
stringham.move-ts
TabNine.tabnine-vscode
tombonnike.vscode-status-bar-format-toggle
twxs.cmake
VisualStudioExptTeam.intellicode-api-usage-examples
VisualStudioExptTeam.vscodeintellicode
xabikos.JavaScriptSnippets

What I tried:

我尝试了什么:


I installed auto import, ES7 React snippets, simple react snippets, tried to load without extensions, tried to move jsconfig.json setup to vite.config.json

我安装了自动导入、ES7 Reaction代码段、Simple Reaction代码段、尝试在没有扩展的情况下加载、尝试将jsfig.json安装程序移动到vite.config.json


It didn't change anything at all

这丝毫没有改变任何事情


更多回答

Rather than dumping us a list of your extensions, tell us the following: Does this happen when you reload VS Code with extensions disabled (use the Developer: Reload With Extensions Disabled command in the command palette)? If not, then do an extension bisect to figure out what extension is causing it.

与其把你的扩展列表转给我们,不如告诉我们:当你在禁用扩展的情况下重新加载VS代码时会发生这种情况吗(使用命令面板中的Developer:ReLoad with Exages Disable命令)?如果没有,那么做一个延伸平分,以找出是什么延伸导致了它。

with that amount of extensions the code should write itself

有了这么多的扩展,代码应该会自己编写

@starball yes, I used this option and it happens with Extensions Disabled

@Starball是的,我使用了此选项,在禁用扩展功能的情况下会发生这种情况

@starball also if you would read my full question you would know. Read section what I tried

@Starball如果你读了我的完整问题,你就会知道。阅读我尝试过的部分

my bad. but info is still missing: you showed what you tried, but didn't say the results of each of those things that you tried.

我的错。但信息仍然缺失:你展示了你尝试了什么,但没有说你尝试的每一件事情的结果。

优秀答案推荐
更多回答

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com