Why no option for 'Specify type explicitly' just for the one line?
Completed
I wanted to specify a type explicitly for a line and got options to do it for the method, for the class, for the project and for the solution.
Why there's no option to do it for just the line I am on? I had to do it for the method, copy the type and then undo.
Please sign in to leave a comment.
Hello Abdu Bukres,
Please attach a screenshot of the Alt + Enter menu where you see only “for the method, for the class, for the project and for the solution”.
Thanks.
Here's a test one. I don't want to use any of those 4 options. I just want to do it for the 'test' variable.

You can just click the "Specify type explicitly" which you see right after hitting Alt+Enter without opening a submenu with scope options like a file, folder, projects, or solution.
Thanks. I don't know why I missed that.
You are welcome!