Visual Studio 2017 includes completion after entering a character in F #

I am developing a F # project using Visual Studio 2017. I used to use C #, and I'm used to a lot of autocompletion in VS, which automatically pops up and shows me a list of local variables, methods, etc. When I click on any character.

Unfortunately, in F # I need to make autocomplete show by pressing ctrl + space . It displays automatically when I type someObject. but I need to type the whole phrase someObject or press ctrl + space every time I want VS to end the long variable name for me. This gets pretty annoying as I'm used to a similar feature in VS Code, Sublime, and C # in VS, and it really speeds up the coding.

I wonder if there is any / plugin / hack option for such a function when using F # inside Visual Studio? Is it possible to mock ctrl + space when entering any character in the code editor?

+5
source share
1 answer

This is currently not supported on RTW VS 2017 tools.

This pull request seems to add what you are looking for and it was merged 3 days ago. There was added a properties dialog (shown in PR) to enable / disable this behavior.

For this reason (and many other compelling reasons - the RTW tool is stable, but not without its share of problems), I suggest you try the latest Visual F # Night .

I just tried the latest build (as of March 18th) and it works when you describe and enable by default.

+8
source

Source: https://habr.com/ru/post/1265643/


All Articles