V
V
Victoria Kabishova2020-03-18 19:39:02
Visual Studio Code
Victoria Kabishova, 2020-03-18 19:39:02

Error in php file in visual studio code?

I create a php file in visual studio code , I start writing the code, everything is correct, but errors start popping up.

The following error occurs:

{
  "resource": "/c:/Users/Home/source/repos/Z2/z2.php",
  "owner": "_generated_diagnostic_collection_name_#2",
  "severity": 8,
  "message": "End of line character is invalid; expected \"\\n\" but found \"\\r\\n\"",
  "source": "phpcs",
  "startLineNumber": 1,
  "startColumn": 1,
  "endLineNumber": 1,
  "endColumn": 2
}


5e724e0b145a2935598096.png

What to do?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
sprashivatel, 2020-03-18
@Parsifal31017

Some kind of game, a similar picture I had on Brackets a hundred years ago, there in such a plug-in for outputting errors I put checkmarks everywhere, what to check and then stuck all in errors, how to reset the plugin to default settings.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question