1、vscode官网下载地址
上面官网如果无法下载,用下方链接下载
2、安装以下插件
3、在vscode界面用快捷键Ctrl+shift+p,选择首选项setting.json,粘贴下方设置代码,同一个类中的引用的Gloabl可以快捷提示。
{
"editor.fontFamily": "Courier New, monospace",
"files.encoding": "gbk",
"editor.fontSize": 20,
"vsicons.dontShowNewVersionMessage": true,
"git.ignoreMissingGitWarning": true,
"workbench.statusBar.visible": true,
"files.associations": {
"*.csp": "html"
},
"explorer.confirmDelete": false,
"editor.renderWhitespace": "all",
"editor.renderControlCharacters": false,
"breadcrumbs.enabled": true,
"workbench.settings.settingsSearchTocBehavior": "hide",
"workbench.colorTheme": "InterSystems Default Dark Modern",
"[html]": {
"editor.defaultFormatter": "vscode.html-language-features"
},
"editor.detectIndentation": false,
"[javascript]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[css]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[csp]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"prettier.tabWidth": 4,
"prettier.printWidth": 500,
"prettier.htmlWhitespaceSensitivity": "ignore",
"prettier.useEditorConfig": false,
"files.autoSave": "onFocusChange",
"editor.wordWrap": "on",
"editor.tabCompletion": "on",
"editor.suggest.statusBar.visible": true,
"workbench.tree.renderIndentGuides": "always",
"search.showLineNumbers": true,
"debug.allowBreakpointsEverywhere": true,
"debug.console.closeOnEnd": true,
"debug.showBreakpointsInOverviewRuler": true,
"editor.autoClosingBrackets": "always",
"editor.autoClosingQuotes": "always",
"editor.mouseWheelZoom": true,
"editor.renderLineHighlight": "all",
"editor.renderLineHighlightOnlyWhenFocus": true,
"editor.showFoldingControls": "always",
"editor.smoothScrolling": true,
"editor.cursorSmoothCaretAnimation": "on",
"files.autoGuessEncoding": true,
"files.simpleDialog.enable": true,
"files.trimFinalNewlines": true,
"files.trimTrailingWhitespace": true,
"workbench.commandPalette.preserveInput": true,
"workbench.list.horizontalScrolling": true,
"workbench.list.smoothScrolling": true,
"terminal.integrated.profiles.windows" :{ "IRIS Terminal" : { "path" : [ "D:\\iMedical\\IntersystemCache\\bin\\Iristerm.exe" ], "args" : [ "IRISHEALTH" ], "icon" : "terminal-cmd" } },
"intersystems.servers": {
"tencentcache": {
"webServer": {
"scheme": "http",
"host": "43.143.151.90", // 连接服务IP
"port": 57772 // 连接服务端口
},
"askForPassword": false,
"password":"sys",
"username": "wsh", // 用户名
"description": "cache" // 描述
},
"/default": "tencentcache" // 默认连接的数据库服务器
},
}
4、选择左侧插件栏的cache,选择要修改的代码,就能将库添加到vscode资源管理器中\
5、选中下方地 web applications可以将本地和远程服务器的csp和js文件添加到vscode资源管理器中
6、sqltools和常用sql查询软件类似,配置方法如下
7、使用教程加演示
1、快速复制当前类路径,打开当前类点击Copy Invocation即可快速复制。
2、快速调试代码,先点击Debug
按钮
在输入参数列表,用逗号隔开,
然后就可以愉快的调试代码了
评论