As the title suggests, I need help removing the type suggestion used in the Visual studio code print commands. I am currently using Java and in each println I always have something like s: before the contents of the brackets. Like: System.out.printf (s: ...); here, how can I remove this suggestion? Thanks =)
Related
how do I escape using a suggestion? ex every time I write a test the suggested text is TextDecoderStream and as soon as I invoke test it changes to TextDecoderStream(). It also selects TextDecoderStream when I hit enter and tab.
If you are trying to declare a variable name try to embrace it between brackets e.g. "[text]".
If you're looking for another solution try this: Visual Studio Code: close suggestion box on `esc`?
I think since the last update of Visual Studio Code (v 1.31), I don't see uncide emojis in the vscode terminal.
That means, when I try to console.log for example "🐶", it gives me the following output: "�".
console.log(🐶) // -> returns � in the console
Does anyone know how to fix this?
Thanks!
I am using VSCode and have installed phpfmt PHP formater extension. When I hit the format code option, the cruly braces of functions and classes are set to new line. I have practice of adding curly brace on the same line and I want the same to be done by the formater.
What I want is:
public function abc () {
}
What PHP formater does is:
public function abc ()
{
}
It works for me:
"phpfmt.psr2": false,
This option is enabled by default and and as written in this standard:
Opening braces for methods MUST go on the next line
"phpfmt.exclude": ["AllmanStyleBraces"]
It is coming default as you are looking for. Try to add formate extensions. Look for PHP phpcs extension.
If it is not working than reinstall your visual studio code again.
for example, when I write
foo( bar ){}
it will be formatted to
foo(bar){}
how do I make it keep the 2 spaces?
Edit:
This is a different question from How to change indentation in Visual Studio Code?
Putting
"javascript.format.insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis": true
in the settings json solved the problem.
I'd like to create a Notepad++ Macro executing the following commands:
1) Plugins -> Compare -> Compare.
2) View -> Word Wrap.
Is that possible?
Is there another workaround for the Compare-plugin breaking Word Wrap?
Thanks.
No need for any macros, since version 1.5.6.4 of ComparePlugin supports word wrap mode.