vscode

Can I use a relative path to configure typescript sdk?

匿名 (未验证) 提交于 2019-12-03 01:23:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: Can I set up typescript.tsdk relative to my project dir/tsconfig file? It looks like this option works only with an absolute path. 回答1: In your project's .vscode/settings.json : { "typescript.tsdk": "node_modules/typescript/lib" } 回答2: You can set in setting.json like this: "typescript.tsdk": "node_modules/typescript/bin" But this break ts files that no have typescript installed by npm in root folder. The best solution I have found, was: "typescript.tsdk": "/Users/ /AppData/Roaming/npm/node_modules/typescript/bin" Still work on ts projects

VSCODE and TFVC how to connect?

匿名 (未验证) 提交于 2019-12-03 01:23:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: How to connect TFVC (version control) to Visual Studio Code? Interested in basic operations such as checkin, checkout, resolve. 回答1: Microsoft recently released Visual Studio Team Services Extension for Visual Studio Code . The process of installing is pretty straight forward: Search for Visual Studio Team Services in VS Code and select to install the one by Microsoft Open File -> Preferences -> Settings Add the following lines to your user settings If you have VS 2015 installed on your machine, your path to Team Foundation tool (tf.exe) may

VSCode配置Flutter模拟器

和自甴很熟 提交于 2019-12-03 01:21:15
以前写过一篇文章 https://blog.csdn.net/qq_39969226/article/details/88824118 可以用 bat文件 管理我们的Android 模拟器。 在VSCode上开发Flutter,主要是考虑到VSCode没有AndroidStudio那么消耗内存. 怎么不用之前讲过的.bat启动呢? 用VSCode的插件: 最推荐的方法: 在AndroidStudio中先下载一个模拟器。然后打开VSCode,ctrl+shift+p输入Flutter:new Project新建一个项目, 然后ctrl+shift+P输入Flutter:Launch Emulator,它会弹出你设备上的虚拟机或者真机设备。然后选选中一个 然后再flutter run运行本项目 来源: CSDN 作者: 所爱隔山海。 链接: https://blog.csdn.net/qq_39969226/article/details/100026151

VSCode+Flutter获取不到Android模拟器(Flutter Unable to locate Android SDK)

假装没事ソ 提交于 2019-12-03 01:20:57
最近要用Flutter写项目了,按照 Flutter中文网 上的步骤一步一步搭建项目。 下载好VSCode并且声称New Project后,不打开VSCode能获取到夜神和魅族5手机,一打开VSCode立刻不行。 nox_adb.exe connect 127.0.0.1:62001 提示错误 解决: 1.连接夜神有无问题:nox_adb.exe connect 127.0.0.1:62001 2.出现问题查找是不是因为端口占用导致(我这里不是) 3. flutter doctor时是否提示错误,按照提示添加用户变量ANDROID_HOME 我的提示如下错误:(偷的别家的图,已经解决了就不想改回来了) 按照提示添加用户变量: 增加用户变量:ANDROID_HOME 变量值:sdk路径 编辑PATH 添加:sdk路径 来源: CSDN 作者: fsx_xiaomei 链接: https://blog.csdn.net/fsx_xiaomei/article/details/100699750

vscode+flutter+夜神模拟器在windows环境下的连接问题

馋奶兔 提交于 2019-12-03 01:20:47
vscode+flutter+夜神模拟器在windows环境下的连接问题 android sdk报错 设备连接不上 如图,在按照百度上的弄完所有东西之后,flutter doctor 还是这样设备连接不上,androidsdk报错,我的adb版本号和夜神的一样!] 输入adb和android都能运行,下面是配置的环境变量 这里要解释一下我path值如果用ANDROID_HOME的绝对地址的话,只能运行adb,android也运行不了,只能这么搞了输入全部地址(以前配置java的环境的时候我也是这么搞得) 还有一个小插曲是,我那天只安装了vscode 的flutter,和夜神模拟器,配完变量后能搜到设备,但是连接不上,后来一查是发现没有安装androidsdk,现在安上了,我连设备都搜索不到了。。。 救救孩子吧!要升大二了不想考研,假期想多学点东西做点东西,结果这么一个弄了三天没弄成功,我心态要崩了 来源: CSDN 作者: 应为渐远 链接: https://blog.csdn.net/qq_43458978/article/details/95350488

vscode import error: from scapy.all import IP

匿名 (未验证) 提交于 2019-12-03 01:09:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: vscode said can't find IP in scapy.all but from terminal, i can import it: could somebody tell my why? 回答1: I get exactly the same issue with my Scapy code in VS Code. I think it's to do with the way pylint is working. When you from scapy.all import IP , Python loads scapy/all.py , which includes the line from scapy.layers.all import * . scapy/layers/all.py includes this code: for _l in conf.load_layers: log_loading.debug("Loading layer %s" % _l) try: load_layer(_l, globals_dict=globals(), symb_list=__all__) except Exception as e: log

Breakpoints not being hit when debugging Serverless in vscode

匿名 (未验证) 提交于 2019-12-03 01:05:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: None of my breakpoints are active when debugging my serverless based application in VSCode. launch.json { "configurations": [ { "console": "integratedTerminal", "cwd": "${workspaceRoot}", "name": "Debug", "port": 5858, "request": "launch", "runtimeArgs": [ "run-script", "vscode:debug" ], "runtimeExecutable": "npm", "type": "node" } ], "version": "0.2.0" } My package.json ... "scripts": { ... "vscode:debug": "export SLS_DEBUG=* && node --inspect=5858 --debug-brk --nolazy ./node_modules/.bin/serverless invoke local -s local -f customerAlexa -p

VSCode + Cmder integration - strange issue

匿名 (未验证) 提交于 2019-12-03 01:00:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: could you tell me why while I integrate the vscode and cmder, like that: "terminal.integrated.shell.windows": "cmd.exe", "terminal.integrated.shellArgs.windows": ["/k", "%CMDER_ROOT%\\vendor\\init.bat"] and use mini_cmder version, everything is working fine. But if I do it the same with full version of cmder, the "Open in terminal" option from contextual menu doesen't work. Anybody know how to resolve that? Best Regards, crova 回答1: Yes, to use the Cmder shell in VS Code, you need to create a vscode.bat file in your cmder path with the

How to create and init “.vscode” in VSCode?

匿名 (未验证) 提交于 2019-12-03 00:57:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I want to create a project in vscode, but I don't know how to initialize the ".vscode" folder in the project, creating it by HM and the ware won't initialize any file in it. How can I do this? 回答1: Normally there should be no need to initialize anything, VSCode handles this folder by itself. As soon you do something that needs to go into this folder, for example using "Preferences->Workspace Settings" or by using one of the debugger presets, it gets populated with the files. And if you really want to add anything by creating the files by

Prettier/VSCode Eslint weird format/syntax breaking bug

匿名 (未验证) 提交于 2019-12-03 00:50:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: Sometimes when I startup VSCode and I save an JS file, everything gets messed up. example From: To: On save What I found out: When I change a VSCode User setting (something related to the prettier plugin | anything (I normally change the prettier.eslintIntegration but it could be that any change in the setting resolves it)) it stops breaking on save. Possible related environment details // Part of .eslintrc { parser: 'babel-eslint', extends: ['airbnb', 'prettier'], plugins: ['prettier'], rules: { 'prettier/prettier': 'error' } ... } //