Skip to content

C++ formatting could be improved in C++ (gcc 4.8, C++11) #15

@pearcej

Description

@pearcej

The C++ program shows as:

#include <iostream>
using namespace std;
int main() {
    cout << "Hello World!" << endl;   cout << "Welcome to C++ Programming" << endl;
}

which of course works, but this would be more readable:

#include <iostream>
using namespace std;
int main() {
    cout << "Hello World!" << endl;   
    cout << "Welcome to C++ Programming" << endl;
}

This is especially true in Codelens where you can't even see the second line without using the scroll bar
See:
image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions