I want to select a piece of code in Visual Studio 2017 and comment it. I know I can use CTRL + K, C, but the result is:
/*fstream in("c:\\users\\hp\\documents\\visual studio 2017\\projects\\inputfile.in");
if (!in)
{
cerr << "can't open input file\n";
return 1;
}
fstream out("outputfile.out", fstream::out);
if (!out)
{
cerr << "can't open output file\n";
return 1;
}*/
and what I actually want is
//fstream in("c:\\users\\hp\\documents\\visual studio 2017\\projects\\inputfile.in");
//if (!in)
//{
// cerr << "can't open input file\n";
// return 1;
//}
//fstream out("outputfile.out", fstream::out);
//if (!out)
//{
// cerr << "can't open output file\n";
// return 1;
//}
How do I do this?
I searched the internet, but I didn't find the answer to this question.