我是vscode的新手(直到现在为止都使用过Webstorm)。我有世界上最简单的项目。 2个文件:index.html和index.js。 Index.html看起来像这样:
<!DOCTYPE html>
<html lang="en" >
<head>
<meta charset="UTF-8">
<title>Hello World JavaScript</title>
</head>
<body>
<script src="index.js"></script>
</body>
</html>
index.js只有一行:
alert("Hello world");
launch.json是这样的:
{
"version": "0.2.0",
"configurations": [
{
"name": "Launch index.html",
"type": "chrome",
"request": "launch",
"file": "${workspaceRoot}/index.html",
"userDataDir": "${workspaceRoot}"
}
]
}
这有效,并且警报弹出。但是,vscode然后将大量的空目录和各种文件写入文件夹。为什么?我该如何预防?这些是它写入的文件。
App Shim Socket
BrowserMetrics-spare.pma
CertificateRevocation
CertificateTransparency
Default
FileTypePolicies
InterventionPolicyDatabase
Local State
MEIPreload
OriginTrials
PepperFlash
RunningChromeVersion
SSLErrorAssistant
Safe Browsing
Safe Browsing Channel IDs
Safe Browsing Channel IDs-journal
Safe Browsing Cookies
Safe Browsing Cookies-journal
ShaderCache
SingletonCookie
SingletonLock
SingletonSocket
Subresource Filter
WidevineCdm
pnacl