Hard/soft wrap on type & paste

I'm still having problems configuring my DataGrip to what I would like it to be.

 

Here is a screenshot:

 

I have hard wrap guideline but as I type I would like the code to wrap with breaking only on white space but without creating a new physical line (until I press enter manually).

Is it possible? I unchecked `hard wrap` setting but it doesn't seem to force the code to softly wrap

 

10 comments
Comment actions Permalink

what are your settings here File | Settings | Editor | General  and here File | Settings | Editor | Code Style  ? also it depends on 'Wrap elements' setting for each section here File | Settings | Editor | Code Style | SQL | General (or particular SQL dialect)

0
Comment actions Permalink

Here is the Code Style ->  General SQL:

And Editor General

0
Comment actions Permalink

You need to enable 'Soft-wrap these files' and add *.sql to the list.

0
Comment actions Permalink

What if I'm just using console queries without saving them as *.sql files?

0
Comment actions Permalink

Actually console is a SQL file, you can find it in ''Files' tool window -> 'scratches and consoles' node.

0
Comment actions Permalink

Looks like in File -> Settings -> Editor -> General -> Console I do have soft wrap selected:

 

0
Comment actions Permalink

And it does not work?

0
Comment actions Permalink

Unfortunately not. 

 

Here is a snippet of a query that I pased into a console window:

As you can see it goes over the line but even if I bring the window to that line, nothing wraps. Instead I'm getting a scroll:

0
Comment actions Permalink

and what if you do as I wrote above? it works for me.

0
Comment actions Permalink

What  do you mean?

0

Please sign in to leave a comment.