yeeeet's blog

By yeeeet, history, 6 years ago, In English

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

  • Vote: I like it
  • +3
  • Vote: I do not like it

| Write comment?
»
6 years ago, # |
  Vote: I like it +11 Vote: I do not like it

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.

  • »
    »
    6 years ago, # ^ |
      Vote: I like it 0 Vote: I do not like it

    How do you specify the compile and run shell commands

    • »
      »
      »
      6 years ago, # ^ |
        Vote: I like it 0 Vote: I do not like it

      You can modify the SublimeInput.sublime-settings file.

      • »
        »
        »
        »
        6 years ago, # ^ |
        Rev. 2   Vote: I like it 0 Vote: I do not like it

        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" : "*/" } } }