Serial monitor not working as it should

Well this is getting really hard to solve. I have a program for the esp32 and it works perfectly with the arduino ide terminal but not in the VS platformio serial monitor, neither in the putty terminal.
The issue appears when reading data from the serial monitor.
I’ve used Serial.readStringUntil(‘\n’); and Serial.readBytesUntil(‘\n’,buff,length); and doesnt work.
The problem is that the serial monitor only allows to type 1 character, and as soon as you press the key, then it stops reading the serial monitor and exit the function, thus despite I want to read a string, I can only read 1 character and that’s not okay at all.
Please I’m not new in this, the baudrate and the rest of the serial terminal configuration is right, as i mentioned before it works perfectly in the arduino ide. I tried to install the arduino extension but doesnt work too.
Platformio settings:

platform = espressif32
board = esp32doit-devkit-v1
framework = arduino
Thanks in advance.

See monitor_filters

monitor_filters = send_on_enter

in platformio.ini.

It is however good practice to make your firmware imune against how fast a character comes in.

For that you can use simple idioms like

String input = "";
bool getInput() {
    while(Serial.available()) {
        char c = (char);
        if(c == '\n' || c == '\r')
            return true;
        input += c;
    return false;

void setup() {
    Serial.println("Enter something!");

void loop() {
    if(getInput()) {
        Serial.print("You input the string: \"");

        // reset after processing
        input = "";

Thanks for your help. The problem was solved when adding the monitor_filter tag.
I couldn’t get to solve in the putty terminal.
Your code indeed works well but when i tried to to apply to my project i found some issues. Your code however seems very generic and could work on any terminal.
Thanks for your help.