vscode

How to use variable vscode in Developer tools?

匿名 (未验证) 提交于 2019-12-03 02:34:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: Is there any way to use variable vscode to get editor content just like Atom without writing Extension. After getting editor content, I can do more things like: Use Javascript to modify text literally Custom format vscode image atom image 回答1: No. This is not supported. You can use the extension API to extend VS Code. This API lets you get and modify editor contents 文章来源: How to use variable vscode in Developer tools?

How to config vscode to open files always in a new tab?

匿名 (未验证) 提交于 2019-12-03 02:03:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 由 翻译 强力驱动 问题: I am using vscode 1.3.1 with the newly introduced tabs. When I click on files, the first file will open in a tab. If I do not make any changes to this file, the second clicked file will open in the same tab. How can I avoid this and make vscode always open a new tab? 回答1: I assume you're using the file browser located within the sidebar in Visual Studio Code to open files. If you're not, this answer will likely not be of any use to you. When you [single-]click a file in the sidebar, Visual Studio Code opens it in what's called

Visual Studio Code “Open With Code” does not appear after right-clicking a folder

匿名 (未验证) 提交于 2019-12-03 01:47:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: Just installed Visual Studio Code 1.1.1 on a Windows 7 machine. When I right-click on a folder, "Open With Code" does not appear. 回答1: Copied from http://thisdavej.com/right-click-on-windows-folder-and-open-with-visual-studio-code/ Create file vsCodeOpenFolder.reg with this content (If you didn't chose the default installation path then you need to adjust the paths in this file): Windows Registry Editor Version 5.00 ; Open files [HKEY_CLASSES_ROOT\*\shell\Open with VS Code] @="Edit with VS Code" "Icon"="C:\\Program Files (x86)\\Microsoft VS

VSCode 'Unable to open file.cs: File Not Found'

匿名 (未验证) 提交于 2019-12-03 01:39:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I've broken my vscode project by renaming the folder or something. Not totally sure what happened. The problem is whilst I can still build and run no problems, something has been messed up so that when I get a compilation error for example when I double click on the message it says Unable to open 'XXXController.cs':File Not Found (file://Controllers/XXXController.cs) Somewhere along the line it seems to have lost the full path to the cs files for 1 of 3 projects in my source folder. I was under the impression that vscode doesn't maintain a

VSCode: how to display both output window and debug console?

匿名 (未验证) 提交于 2019-12-03 01:38:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: Is there a way to simultaneously view in VSCode: the output window and the debug console? 文章来源: VSCode: how to display both output window and debug console?

VsCode Extension: Rename Symbols

匿名 (未验证) 提交于 2019-12-03 01:36:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: Is there any why to trigger Rename Variable from a Extension? I found an example how to rename a certain word in a file, but the reference variables keep the same as before. 回答1: Try using the vscode.executeDocumentRenameProvider command: import * as vscode from 'vscode' vscode.commands.executeCommand('vscode.executeDocumentRenameProvider', vscode.window.activeTextEditor.document.uri, new vscode.Position(targetLine, targetCharacter), 'newSymbolName').then(edit => { if (!edit) { return false; } return vscode.workspace.applyEdit(edit); }) This

Setup VSCode for C++ on Windows (MSVC)

匿名 (未验证) 提交于 2019-12-03 01:34:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I'm a little befuddled that I'm not able to setup Visual Studio Code to do C++ development on Windows using MSVC. All over the web people say how pleased they are with how easy everything is to set up and use, but I don't find any straightforward guides; most of them just skip the setup part and show how nice everything works including code completion/intellisense and debugging support. I have installed Visual Studio 2015 Community Edition (including the debugging tools etc.), Visual Studio Code and the C++ extension by Microsoft. What do I

How to run PHP code from Visual Studio Code (VSCode)?

匿名 (未验证) 提交于 2019-12-03 01:34:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 由 翻译 强力驱动 问题: I can't find a way to run php on Visual studio code, Does anyone know how? Duplicate: Yes it is but a little bit different from here . Steps: I followed below steps to configure php in VS Code. Configure PHP linting in user settings Install Php Debug extension in VSCode Then configure php.ini file Create a external php file in root folder add <? echo "My First PHP site in VSCode."; ?> in external php file which I created now In my index.html file I referenced my php file like: Run my web server apache using xampp control panel

vscode python remote interpreter

匿名 (未验证) 提交于 2019-12-03 01:34:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 由 翻译 强力驱动 问题: By using VSCode (Visual Studio Code) I execute Python code on a local Python (Anaconda) interpreter. Now I would like to set it up so that I am able to execute that code on a remote Python interpreter. I have a Linux device which has its own Python and is accessible via ssh. Is it possible to configure it? If so how? Thank you. 回答1: While Microsoft is working on officially implementing this in VSCode (see: https://github.com/Microsoft/vscode-python/issues/79 ) I am personally using the following task defined in tasks.json for

How to Create a VSCode Python Workspace?

匿名 (未验证) 提交于 2019-12-03 01:33:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I'm trying to setup python on Visual Studio Code on MacOS. I have Python 2.7 and 3.5 interpreters installed on my computer. When I attempted to create my first python file the import modules were not found. According to the various setup instructions I've seen I'm supposed to be able to configure for my interpreter in "workspace settings." But I'm not sure I have a workspace, where to find it or how it is created. When I go to the Command Palette and try to run Python: Select Workplace Interpreter I get an error that says, "Please open a