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?


0

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
Avatar
Permanently deleted user

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 = ?;
 
The issue seems to be occurring in js files only, when the line is wrapped. Please report this at http://youtrack.jetbrains.com/issues/WEB#newissue=yes
 
0

请先登录再写评论。