visual-studio-code

Debug java micronaut microservice in visual studio code

半腔热情 提交于 2021-01-28 11:01:38
问题 I created a microservice using micronaut and visual studio code. Everything is working find when I run the service using the gradlew.bat. I want to debug my microservice using visual studio code but annotation processing are not working. When I debug the service in visual studio code, it runs the main class and starts listening the localhost port but none of my controllers is found This is my launch configuration: { "type": "java", "name": "Debug (Launch)-Application<keycloak>", "request":

Atom Typescript Not Displaying Errors

筅森魡賤 提交于 2021-01-28 11:00:00
问题 I'm having a problem where Atom isn't displaying Typescript errors. Below is a screenshot of my code example in Atom. And below is a screenshot of the same code in Visual Studio Code. How can I get Atom to display the same errors like Visual Studio Code does? 回答1: Atom requires a plugin in order to provide these errors. Install Atom TypeScript ( apm install atom-typescript ) and restart Atom and the errors will automatically be displayed. If the errors are still not showing up, you may need

How to configure a VSCode Task to run a powershell script in the integrated terminal

纵饮孤独 提交于 2021-01-28 10:40:44
问题 In such a way that it is not in a sub shell. I need it to be able to prepare the environment...set environment variable. "version": "0.1.0", "command": "${workspaceFolder}/Invoke-Task.ps1", /*"command": "powershell", creates subshell so doesn't work*/ "isShellCommand": false, "args": [], "showOutput": "always", "echoCommand": true, "suppressTaskName": true, "tasks": [ { "taskName": "task1", "args": ["task1"] }, { "taskName": "task2", "args": ["task2"] } ] 回答1: This has been doable since 2017,

Shortcut for opening the definition file in a split vertical group in vscode

岁酱吖の 提交于 2021-01-28 09:59:56
问题 Are there any shortcuts to open the definition (e.g.: a method definition) in a split vertical group? By ctrl + click on the usage of method, it opens in a new tab. It bothers me, because I have to leave my own tab. (I know that after opening in a new tab, by pressing ctrl + \ it will be open it in a new group, but this also has the same problem: I lose my own tab, and a second problem: when I want to close the definition file, I have to close it from both the 2nd group and the 1st group.)

Shortcut for opening the definition file in a split vertical group in vscode

六月ゝ 毕业季﹏ 提交于 2021-01-28 09:53:34
问题 Are there any shortcuts to open the definition (e.g.: a method definition) in a split vertical group? By ctrl + click on the usage of method, it opens in a new tab. It bothers me, because I have to leave my own tab. (I know that after opening in a new tab, by pressing ctrl + \ it will be open it in a new group, but this also has the same problem: I lose my own tab, and a second problem: when I want to close the definition file, I have to close it from both the 2nd group and the 1st group.)

Add a formatter (beautifier) to django-html files in Visual Studio Code

混江龙づ霸主 提交于 2021-01-28 09:40:31
问题 I'm using the Django extension for intellisense and syntax highlighting on Jinja templates (VS Code) but cannot figure out how to use my default formatter (HookyQR Beautify) to beautify/format my django-html files. Would that be possible? 回答1: I need to use beautify only for django-html files, I've got prettier working for js, html, css then flake8 and autopep8 for python, for django-html prettier wrongly formats jinja template strings, so I disabled the django-html from pettier languages and

How to disable displaying comments at the end of array in VS Code?

雨燕双飞 提交于 2021-01-28 09:18:43
问题 The VS Code displays comments at the end of array. How to disable this feature? Original code var foo = <Foo>[ new Foo() ]; Displayed as var foo = <Foo>[ new Foo() ]; // Foo[] Where the comment // Foo[] was displayed automatically. 来源: https://stackoverflow.com/questions/49710847/how-to-disable-displaying-comments-at-the-end-of-array-in-vs-code

VSCode hide inline git changes in window popup text editor

自作多情 提交于 2021-01-28 07:55:10
问题 In Visual Studio Code I wish to permanently hide the window that pops up with an inline diff in my text editor. It appears after clicking on the blue bar next to the line numbers. Is there a setting to disable this? Edit: I have disabled the codelens setting, but it doesn't resolve my problem. 来源: https://stackoverflow.com/questions/58746387/vscode-hide-inline-git-changes-in-window-popup-text-editor

How to I remove whole line highlighting in VScode?

拥有回忆 提交于 2021-01-28 07:13:48
问题 I want VSCode line highlight to look like this Currently, it looks like this Basically I dont want VSCode to highlight the entire line. 回答1: add this to your settings.json (global or project) "workbench.colorCustomizations": { "editor.lineHighlightBackground": "#00000000" }, Set the line highlight to a transparent color 回答2: Look at the options for this setting: Editor: Render Line Highlight options are none , gutter , line and all You cannot just highlight the text part of the line. If that

How can I get rid of the `Node “13.0.0-nightly20190802452b393c1f”` so that I can be able to create a react app using the `create-react-app` tool?

谁说我不能喝 提交于 2021-01-28 07:13:06
问题 I'm trying to create a react app using npx's create-react-app command in ubuntu 18.04 terminal. I have Node v12.8.0 installed. When I run the command npx create-react-app . in the directory of my app, I expect the react app boilerplate folders and files to be generated since I have the latest version of Node v12.8.0 and npm v6.10.2 in my machine.Instead, I get the below output... npx: installed 91 in 5.725s Creating a new React app in /home/<my-PC>/Documents/todo-app. warning You are using