Пожалуйста, подпишитесь на официальный канал Codeforces в Telegram по ссылке https://t.me/codeforces_official. ×

Блог пользователя MKGAURAB

Автор MKGAURAB, история, 9 лет назад, По-английски

Those who use sublime Text 3 for C++ coding in Ubuntu. This build system is for them https://github.com/ddxofy/SublimeTextSnippets/blob/master/G%2B%2B(For%20Ubuntu).sublime-build

  • Проголосовать: нравится
  • +3
  • Проголосовать: не нравится

»
9 лет назад, # |
  Проголосовать: нравится +3 Проголосовать: не нравится

The terminal opens, but doesn't wait for user interrupt and closes instantaneously. What to do?

  • »
    »
    9 лет назад, # ^ |
      Проголосовать: нравится +3 Проголосовать: не нравится

    I have worked on that. Couldn't find any good solution though.

  • »
    »
    9 лет назад, # ^ |
    Rev. 2   Проголосовать: нравится +1 Проголосовать: не нравится

    I use this Build System in sublime-text-2 and works properly! I think it's OK with ST3!

    if that Build System doesn't work, another solution is to create a .sh shell script which compiles and runs your code!!

    PS: just simply add read -p 'Press any key to continue...' to the cmd string!

  • »
    »
    8 лет назад, # ^ |
      Проголосовать: нравится -22 Проголосовать: не нравится

    { "cmd": ["g++", "file", " - o", "{file_path}/{filebasename}"], "fileregex": "(..[: ] * ): ([0 - 9] + ): ?([0 - 9] + )?: ?(. * )", "working_dir": "{filepath}", "selector": "source.c, source.c +  + , source.cxx, source.cpp", "variants": [{"name": "Run", "shell": true, "cmd": ["gnome - terminal - e'bash - c"{file_path}/${file_base_name};echo;echo; echo Press ENTER to continue; read line;exit; exec bash"'"] } ]
    }

»
9 лет назад, # |
  Проголосовать: нравится +1 Проголосовать: не нравится

In each folder with source file there was Makefile also, and to run it I used this plugin.

»
8 лет назад, # |
  Проголосовать: нравится 0 Проголосовать: не нравится

Auto comment: topic has been updated by MKGAURAB (previous revision, new revision, compare).