### yeeeet's blog

By yeeeet, history, 5 months ago, ,

How do you provide input with comments at the top and run on c++14 with Sublime Text ?

• +3

 » 5 months ago, # |   +11 It's a package called SublimeInput.You can specify your own key bindings for the package, using which it would compile your source code, and run it with the input from the source code itself, and give the output in sublime itself.You can specify the compile and run shell commands for any language, along with how your input placeholder at the top looks like.
•  » » 5 months ago, # ^ |   0 How do you specify the compile and run shell commands
•  » » » 5 months ago, # ^ |   0 You can modify the SublimeInput.sublime-settings file.
•  » » » » 5 months ago, # ^ | ← Rev. 2 →   0 So like change it into { "build_schemas" : { "cpp" : { "shell_cmd" : "g++ -std=c++14 "${file}" -o "${file_path}/${file_base_name}" && "${file_path}/\${file_base_name}"", "input_start" : "/*input", "input_end" : "*/" } } }
•  » » » » » 5 months ago, # ^ |   0 Yes
•  » » » » » » 5 months ago, # ^ |   0 It still does not work
 » 5 months ago, # |   0 Personally I found this plugin to be great for testing on various inputs (it allows multiple TCs and runs the program against all of them on every compile)https://codeforces.com/blog/entry/60627