Well, I'll first give an example to motivate the method. Think for example in $(x+1)^2$ if you expand this normally you'll get $x^2+2x+1$, notice that this is square of the first term plus twice the first term times the second term plus the second term squared. So if we have an arbitrary expression like your's it'll be possible to extract from it one expression that is the square of the sum of two numbers plus another number.
You have $f(x) = 2x^2+4x-6$, so divide this by $2$ to get $f(x)/2 = x^2+2x-3$, the reason I did this will soon appear. Now look just on the RHS, if we want to write this as $(x+\text{something})^2$ we know that it'll have before anything else the first term squared, that is, $x^2$, but look there! You already have $x^2$ in your expression (and it's exactly the first term squared because we divided by $2$ so that only $x^2$ remains).
Now, you have $2x$, remember tha the second term appearing after expanding the square should be twice the first term times the second term, now you have there the second term $2x$, and you know this is the second term because it has the first term times something. Note that in the expansion, only in this place appears the first term times something without being squared. Now, since it is twice the first term times the second term, and sice $x$ is the first term, if we divide this by $2\cdot x$ (twice the first term) we'll get the second term! Now, doing this we have that the second term must by $1$.
Now, we have there a minus $3$, not the square of the second term as expected. Now we fix that completing the square, we simply sum and subtract the second term squared (and it won't alter anything since summing and subtracting together aims to summing zero), so we write:
$$f(x)/2 = x^2+2x +1 - 1 - 3$$
Now, the thing $(x^2+2x+1)$ will be just $(x+1)^2$ and $-1-3 = -4$ so that we have in the end $f(x)/2 = (x+1)^2 - 4$ and so $f(x) = 2(x+1)^2 - 8$. You can easily check that's the same thing you had before:
$$f(x) = 2(x^2+2x+1)-8 = 2x^2+4x+2 - 8 = 2x^2 + 4x -6$$
I hope it helps you out. My suggestion is that you try to repeat this argument to another problem so that you get better practice.