Line wrap breaks code recognition

I got some code (see attachment) to create a SQL query and the support for the database works fine (e.g. autocompletion for column names). The query gets quite long so the line is wrapped. This line wrapping breaks the code recognition and the code in my next line is just a plain string.

How can I avoid very long lines of code and yet get the help of the code recognition?


3 comments

Did you wrap the code manually (with Enter/Return)? IDE shouldn't act this way by default.

Could you please attach the code here (it's not convenient to retype the code off the screenshot)?

0

I tried to wrap it manually as well as to let it hard warp by the Code Style with the same result.

let query = "UPDATE player SET dateOfBirth = ?, regDate = ?, idStatus = ?, idDate = ?, idProcedure = ?, " +
" accountStatus = ?, accountStatusChange = ?, balance = ?, depositLimitDay = ? ";
0

Is it mysql? 

Could you please confirm if the query is:

UPDATE player SET dateOfBirth = ?, regDate = ?, idStatus = ?, idDate = ?, idProcedure = ?, accountStatus = ?, accountStatusChange = ?, balance = ?, depositLimitDay = ?;
0

Please sign in to leave a comment.