There are a few methods you can use to keep a one-line code expression in C++ from being separated into multiple lines by VS Code:
int sum = 1 + 2 \
+ 3 + 4;
int sum = (1 + 2
+ 3 + 4);
int sum = (1 + 2 \
+ 3 + 4);
Asked: 2023-07-16 16:25:15 +0000
Seen: 10 times
Last updated: Jul 16 '23