Users encounter difficulties when attempting to input values in Sublime Text 2, particularly when using functions like input() in Python or gets in Ruby. The console doesn't prompt for input, leading to errors like EOFError.
The issue arises from Sublime Text 2's lack of native support for console input. Fortunately, a workaround exists using SublimeREPL, a package that integrates a REPL (Read-Eval-Print Loop) into Sublime Text.
Installing SublimeREPL:
Using SublimeREPL:
Making SublimeREPL the Default Build System:
"sublime_re_install_default_build": true, "sublime_re_use_for_current_project": true
This will set SublimeREPL as the default build system for all projects.
By utilizing SublimeREPL, users can provide user input in Sublime Text 2, eliminating the need to rely on external terminals or custom setups.
Disclaimer: All resources provided are partly from the Internet. If there is any infringement of your copyright or other rights and interests, please explain the detailed reasons and provide proof of copyright or rights and interests and then send it to the email: [email protected] We will handle it for you as soon as possible.
Copyright© 2022 湘ICP备2022001581号-3