vscode-settings

when opening multiple files in vscode, only the first is actually loaded in memory

老子叫甜甜 提交于 2021-02-11 15:02:35
问题 For my job i'm frequently opening lists of files from the terminal. When i do this with vscode, they are opened and all the tabs are there. But only the files i have clicked though and looked at are loaded into memory. If i were to do a find and replace it would only bring up results from the files i have looked at. It also doesnt tell me how many files are open exactly which would be nice. These all seem like things other editors do by default. I was wondering what i have to do to enable

when opening multiple files in vscode, only the first is actually loaded in memory

时间秒杀一切 提交于 2021-02-11 14:58:18
问题 For my job i'm frequently opening lists of files from the terminal. When i do this with vscode, they are opened and all the tabs are there. But only the files i have clicked though and looked at are loaded into memory. If i were to do a find and replace it would only bring up results from the files i have looked at. It also doesnt tell me how many files are open exactly which would be nice. These all seem like things other editors do by default. I was wondering what i have to do to enable

VSCode not able to recognize the code (Flutter/Dart)

可紊 提交于 2021-02-11 12:22:21
问题 Till yesterday, VSCode was running fine, but after dart updated itself, VSCode has stopped recognizing my code as a language. When I type CTRL+F5, it pops up asking to select a compiler. The code runs fine, but it is not able to recognize it. Side note, it works in Android Studio. Updating the pubspec.yaml file just removes errors but the code is still not recognized. Popup: https://i.stack.imgur.com/c2WZR.png No syntax highlighting/nothing: https://i.stack.imgur.com/EmtiU.png P.S: It

How can you hide Java compiler path VSCode?

人盡茶涼 提交于 2021-02-11 08:50:01
问题 When I run a java program in vscode's integrated terminal, the full java path displays as a large box of text. Is there any way to get ride of this? /Library/Java/JavaVirtualMachines/jdk-13.0.1.jdk/Contents/Home/bin/java --enable-preview -Dfile.encoding=UTF-8 -cp "/Users/myusername/Library/Application Support/Code/User/workspaceStorage/alotofnumbers/redhat.java/jdt_ws/foldername/bin" 回答1: you could let it output in debug console instead of terminal channel as a workaround, add "console":

VSCode intellisense appears if only space bar pressed in Flutter

会有一股神秘感。 提交于 2021-02-10 20:15:12
问题 I'm using VSCode to develop Flutter Apps, but, intellisense only shows up when I press space bar first. For instance when I create any widget within the widget tree, such as IconButton(icon:), the property 'icon' doesn't show up in intellisense when typing the first characters, like 'ic', only if I press the space bar, or after the property was completely typed and then if it is removed, the next time when typing, then the intellisense works fine. Does anyone else having the same issue? it is

python debug adapter not being found in vscode - WSL:Ubuntu

倾然丶 夕夏残阳落幕 提交于 2021-02-10 14:43:36
问题 I'm trying to debug a python script in vscode using the Remote WSL extension with Python 3.9.1. When I start debugging mode(F5), the below message is immediately shown: Couldn't find a debug adapter descriptor for debug type 'python' (extension might have failed to active) The message offers me to Open launch.json , I still don't know what I have to change in my json file, below are my current settings: { "version": "0.2.0", "configurations": [ { "name": "Python: Current File", "type":

How to exclude all folders except one folder in vscode?

人走茶凉 提交于 2021-02-10 05:54:07
问题 └── target ├── W350 ├── W400 ├── W600 ├── W600_HW_V2 ├── W600_KT_HW_V2 ├── W600_KT_HW_V2_neutral ├── W600_TK ├── W650 ├── W650_HW_V2 └── W750 I want to exclude all folders except W600_KT_HW_V2 . VSCode should then show this tree: └── target └── W600_KT_HW_V2 What should I do? 回答1: In general, you could do this: "files.exclude": { // "**/node_modules": true, "**/[^1]*": true, // all you need in your example "**/1[^2]*": true, "**/12[^3]*": true }, In your case, only the first "**/[^1]*": true,

Configure VSCode include path

岁酱吖の 提交于 2021-02-09 07:29:44
问题 I use VSCode to edit Xilinx SDK files. The VSCode issues "problems" that include path can't be found. I used the bulb "show fixes": Add to "includePath": D:/Other/Xilinx/SDK/2017.4/gnu/aarch32/nt/gcc-arm-none-eabi/lib/gcc/arm-none-eabi/6.2.1/include But VSCode is still complaining about the missing include path, although each Add to "includePath" adds a correct path to "c_cpp_properties.json" in the projects .vscode folder. What's wrong with the include configuration? { "configurations": [ {

How do I set up imports for custom modules in VS Code?

旧巷老猫 提交于 2021-02-08 10:40:25
问题 I am trying to bring my (working/executable) project from PyCharm to VS Code. My folder structure looks like this (simplified): root |- .venv |- src |- helper |- windows |- main |- __init__.py |- main_window.py |- __init__.py I'm trying to execute the src/__init__.py file, which has the following code: from PyQt5.QtWidgets import QApplication from src.windows.main import MainWindow import sys if __name__ == '__main__': app = QApplication(sys.argv) w = MainWindow() sys.exit(app.exec_()) This

terminal.integrated.env.windows for Integrated Terminal

拥有回忆 提交于 2021-02-08 08:21:42
问题 I'm trying to set variable before start the Integrated Terminal User Setting: { "terminal.integrated.env.windows": { "foo": "bar" } } Then View > Integrated Terminal Windows PowerShell Copyright (C) 2016 Microsoft Corporation. All rights reserved. PS C:\bar> echo $foo PS C:\bar> It's seem not work, It's bug or I'm wrong? VSCode Version: 1.16.1 PS: Already seem Set global $PATH environment variable in VS Code 回答1: Finally, yume-chan answer by question in Ref: https://github.com/Microsoft