Skip to content

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

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions