[Python] Can the maximum line width in the terminal be increased in PyCharm?

Discussão em 'Python' iniciado por Stack, Setembro 11, 2024.

  1. Stack

    Stack Membro Participativo

    In PyCharm, the terminal appears to have a maximum width of 265 characters.

    To see this, run the following at a python prompt in the PyCharm terminal:

    print('x' * 264) # displays a long row of xxxxxxx on one line
    print('x' * 265) # wraps the newline character onto a new line
    print('x' * 266) # wraps one of the x's onto a new line


    Is there a setting in PyCharm to increase this limit on line width?

    I would like to print out lines that are longer than this, to compare with output from a different program.

    I realise that I could write the output to a file from Python, but for quick debugging it is often convenient to print to the terminal.

    Continue reading...

Compartilhe esta Página