visual-studio-code

Autocomplete not working well in visual studio code

牧云@^-^@ 提交于 2020-12-26 07:43:30
问题 I'm getting started with Visual Studio Code and have been a user of Atom. One thing I've noticed, particularly with autocomplete for PHP, I have to scroll through a list of options in order to find the option to automatically fill in code. I want to get the autocomplete just by hitting tab. Say, for example, I want to make an if statement. In Atom, I just type "if" then hit tab and it will fill in the code with everything I need. In VS Code, if I type "if" followed by tab, nothing will happen

VSCode + C# (OmiSharp) not showing any errors

筅森魡賤 提交于 2020-12-26 07:15:32
问题 I'm trying to find out why i'm not getting any help by omisharp in my visual studio code. I've tried reinstalling both application and my extensions and i'm still having the problem. Any ideas on what i might be missing? something I need to install? // Alex 回答1: Immediately after you have opened your application in VS Code, open the Output window (View > Output) and choose the OmniSharp Log in the Output window. That will provide more information about what is happening. 回答2: OmniSharp works

VSCode how to automatically insert Intellisense suggestions without having to press Enter?

混江龙づ霸主 提交于 2020-12-26 05:07:19
问题 Default VS Code Intellisense behaviour User is presented with a menu of suggestions User then has to press the Up or Down arrow keys to navigate through the menu Finally user has to confirm with Enter to insert the suggestion and close the dialog What I would like instead Don't need to press Enter Suggestions are automatically inserted (and cycled through) by pressing Up / Down Pressing any other keys will close the dialog and resume typing To be clear, I want to replicate the default

Preview features enabled at an invalid source release level 13, preview can be enabled only at source level 14Java(2098258)

天涯浪子 提交于 2020-12-26 04:30:14
问题 VS Code is showing anomalous behaviour from into my pc from the last couple of days. I am not able to run a simple java code. At the beginning it's it's giving an error: > Preview features enabled at an invalid source release level 13, preview can be enabled only at source level 14Java(2098258) The compilation result ends with: ` Error: Could not find or load main class Lol Caused by: java.lang.ClassNotFoundException: Lol Lol is the class name in which I have defined the main method. class

Keep $ for Powershell variable in VS code snippet

假装没事ソ 提交于 2020-12-25 18:53:52
问题 I’m able to save my code snippets with tabbed spacing in VS code for Powershell, but it keeps ignoring my variables by not displaying the $ for my variables when I call the snippet. It will just paste in the name and omit the $ . How do you get VS code to paste in the $ when you select your code snippet? Here is the VS Code JSON file I'm using for my "template" snippet { // Place your snippets for powershell here. Each snippet is defined under a snippet name and has a prefix, body and //

Open Containers in Remote SSH Hosts using VSCode

非 Y 不嫁゛ 提交于 2020-12-25 01:04:06
问题 Using the Remote Development extension pack, Visual Studio Code is able to open a Docker container running on the current system, and to open a folder on a remote host connected using SSH. If there is a Docker container running on a remote SSH host, how can VSCode open a file/folder in this container? 回答1: So you want to open a folder inside a container in a remote SSH server. Following are the steps through which I achieved it. Step 1 install Remote Development extension in VSCode and open

Open Containers in Remote SSH Hosts using VSCode

天涯浪子 提交于 2020-12-25 00:58:37
问题 Using the Remote Development extension pack, Visual Studio Code is able to open a Docker container running on the current system, and to open a folder on a remote host connected using SSH. If there is a Docker container running on a remote SSH host, how can VSCode open a file/folder in this container? 回答1: So you want to open a folder inside a container in a remote SSH server. Following are the steps through which I achieved it. Step 1 install Remote Development extension in VSCode and open

Open Containers in Remote SSH Hosts using VSCode

本小妞迷上赌 提交于 2020-12-25 00:58:36
问题 Using the Remote Development extension pack, Visual Studio Code is able to open a Docker container running on the current system, and to open a folder on a remote host connected using SSH. If there is a Docker container running on a remote SSH host, how can VSCode open a file/folder in this container? 回答1: So you want to open a folder inside a container in a remote SSH server. Following are the steps through which I achieved it. Step 1 install Remote Development extension in VSCode and open

Xdebug V3 doesn't stop breakpoints in VSCode

ぃ、小莉子 提交于 2020-12-23 07:52:41
问题 I am trying to debug on my XAMPP using VSCode and didn't worked. I know there are tons of questions about this and I've tried everything I can but still won't work. There is really 1 thing weird thou about my xdebug extension.I am currently using PHP v7.4.12 and Xdebug version 3. I know my Xdebug works on PHP because I viewed phpinfo() and it shows just how I set it. The weird part is among the many of the tutorials out there normally zend_extension = path.. , xdebug.remote_enable = 1 and

Xdebug V3 doesn't stop breakpoints in VSCode

别说谁变了你拦得住时间么 提交于 2020-12-23 07:51:47
问题 I am trying to debug on my XAMPP using VSCode and didn't worked. I know there are tons of questions about this and I've tried everything I can but still won't work. There is really 1 thing weird thou about my xdebug extension.I am currently using PHP v7.4.12 and Xdebug version 3. I know my Xdebug works on PHP because I viewed phpinfo() and it shows just how I set it. The weird part is among the many of the tutorials out there normally zend_extension = path.. , xdebug.remote_enable = 1 and