visual-studio-code

VSCode not picking up ipykernel

自作多情 提交于 2020-12-13 07:05:26
问题 I'm trying to use vscode with jupyter via the python extension. My pipfile looks like this: [[source]] name = "pypi" url = "https://pypi.org/simple" verify_ssl = true [packages] opencv-python = "*" [requires] python_version = "3.6" [dev-packages] ipykernel = "*" ipython = "*" jupyter = "*" To start the ipython interpreter i follow these steps: $ pipenv install $ pipenv shell $ code . using the Python: Select interpreter, i select the pipenv environment run code when i got to the code block by

Custom Extension for JSON Completion Does Not Work in Double Quotes

大兔子大兔子 提交于 2020-12-12 13:21:45
问题 I'm developing a VSCode extension that should enhance JSON editing with additional code completion. Therefore I added four dummy suggestions ( foo , foo1 , foo2 , foo3 ) to start testing. When typing a colon after a JSON key it works as expected: Also when I trigger completion in an empty object it works as I want it (including suggestions from other extensions): However when I trigger completion within double quotes (no matter if they contain text or not) my suggestions are missing: When I

Custom Extension for JSON Completion Does Not Work in Double Quotes

心已入冬 提交于 2020-12-12 13:21:04
问题 I'm developing a VSCode extension that should enhance JSON editing with additional code completion. Therefore I added four dummy suggestions ( foo , foo1 , foo2 , foo3 ) to start testing. When typing a colon after a JSON key it works as expected: Also when I trigger completion in an empty object it works as I want it (including suggestions from other extensions): However when I trigger completion within double quotes (no matter if they contain text or not) my suggestions are missing: When I

Custom Extension for JSON Completion Does Not Work in Double Quotes

流过昼夜 提交于 2020-12-12 13:20:55
问题 I'm developing a VSCode extension that should enhance JSON editing with additional code completion. Therefore I added four dummy suggestions ( foo , foo1 , foo2 , foo3 ) to start testing. When typing a colon after a JSON key it works as expected: Also when I trigger completion in an empty object it works as I want it (including suggestions from other extensions): However when I trigger completion within double quotes (no matter if they contain text or not) my suggestions are missing: When I

How to use the vscode python debugger with a project built with bazel?

倾然丶 夕夏残阳落幕 提交于 2020-12-12 11:11:55
问题 I want to debug a python file which has a few dependencies that only appear in the runfiles from bazel. How can I debug a bazel build with the vscode debugger? 回答1: As someone famous said, "Yes, we can". You would need to use the "ptvsd" python package. One-time Setup Add "ptvsd" as a Python dependency in Bazel In VS Code, in your launch.json file, add the following configuration: { "name": "Python: Attach", "type": "python", "request": "attach", "port": 5724, "host": "localhost" }, Debug

How to use the vscode python debugger with a project built with bazel?

蹲街弑〆低调 提交于 2020-12-12 11:10:21
问题 I want to debug a python file which has a few dependencies that only appear in the runfiles from bazel. How can I debug a bazel build with the vscode debugger? 回答1: As someone famous said, "Yes, we can". You would need to use the "ptvsd" python package. One-time Setup Add "ptvsd" as a Python dependency in Bazel In VS Code, in your launch.json file, add the following configuration: { "name": "Python: Attach", "type": "python", "request": "attach", "port": 5724, "host": "localhost" }, Debug

How to make Code Runner run in external terminal (Command Prompt)?

ぃ、小莉子 提交于 2020-12-12 07:02:30
问题 So, basically the Code Runner in Visual Studio Code can run in the integrated terminal. How can I make it to run in external terminal, which is command prompt because I need to present my program's output to my classmates, so it's not convenient to display it through the integrated one. I know there's a software like Dev-C++ that can run in external terminal, but I love to use this VS Code because of its clean UI, and the Code Runner plugin is pretty good doing its job. How can I do it just

How to make Code Runner run in external terminal (Command Prompt)?

怎甘沉沦 提交于 2020-12-12 07:02:13
问题 So, basically the Code Runner in Visual Studio Code can run in the integrated terminal. How can I make it to run in external terminal, which is command prompt because I need to present my program's output to my classmates, so it's not convenient to display it through the integrated one. I know there's a software like Dev-C++ that can run in external terminal, but I love to use this VS Code because of its clean UI, and the Code Runner plugin is pretty good doing its job. How can I do it just

VSCode: Prevent split editor from resizing when focusing?

ぃ、小莉子 提交于 2020-12-12 04:39:52
问题 With multiple editor groups open, and one of them made small enough, focusing the small one causes it to get bigger until you switch back to another editor. I'd prefer it leave everything at the size I set. Is there a setting to prevent this? Note how it has to be made small first old example 回答1: If you don't minimize the group all the way - you only have to stop just a tiny bit short of complete minimization (maybe only a pixel short) - then shifting focus between groups will not change