I bought Resharper two days ago but now I have 2 big problems with it.
When I type in main
, it manually turns it into
int main(int argc, char* argv[])
I really like this, but I need to change this code to
int32_t main(int32_t argc,char* argv[])
Does anyone know how I can change the code suggested by autocompletion?
The second problem is that when I type in endl
it suggests another option first, although it is a worse match (like _END_C_LIB_DECL
in this case):
instead of showing endl
as first suggestion. Same with std::array
. I don't want to always type in std::endl
, how can I configure Resharper so that the first suggestion is the one that has the best match?
Contents of the main
template can be changed using the "ReSharper | Tools | Templates Explorer" tool window.
As for the second issue, let me explain the reason behind it. ReSharper has two completion sources. The completion results which are visible at the current point are shown instantly, and the results that might require a namespace qualification or insertion of an include directive are added later (since collecting them might be slow). While adding these additional completion items, ReSharper can't change the selected completion item - that's why endl
gets shown as the second item.