[BU03] Three easy ways to get Sublime to automatically select your custom build

Поделиться
HTML-код
  • Опубликовано: 12 ноя 2024

Комментарии • 19

  • @dwayne6402
    @dwayne6402 3 года назад +1

    is there a resource for someone new to Sublime Text to go from beginner to intermediate to advanced user. I am an intermediate user but I don't have a good grasp of all the basics and I keep struggling with using Sublime Text. I am a front end programmer (beginner, learner) and I use Sublime Text 4 for those purposes ie HTML, CSS, Javascript, Typescript, React, Git etc

    • @OdatNurd
      @OdatNurd  3 года назад +2

      The first thing that comes to mind is the Community documentation (which used to be called the Unofficial Documentation), which documents more than the official documentation does, though that is currently starting to catch up somewhat. You can find it at docs.sublimetext.io/

  • @peterSobieraj
    @peterSobieraj 2 года назад

    keyfiles doesn't work for me.
    I added "cmd" and "keyfiles". I opened test.txt that is in same folder as Makefile, but when I try to build sublime said "No build system".
    My build file looks like this: {"cmd": ["make"],"keyfiles":["Makefile","makefile"]}

    • @OdatNurd
      @OdatNurd  2 года назад

      Have you verified that the JSON you're using is valid (i.e. see if it passes JSON Lint) and that it's in a file with the sublime-build extension?

    • @peterSobieraj
      @peterSobieraj 2 года назад

      ​@@OdatNurd Yes. I just verified using some online tool and it's correct.
      If I compile while makefile is selected it works (but I think that's build in building system for makefiles). If I specyficaly select my build system, then it works.
      But if it's automatic and I have test.txt selected then I got "No Build System".

    • @OdatNurd
      @OdatNurd  2 года назад

      @@peterSobieraj Do you see any errors in the Sublime console at all?

    • @peterSobieraj
      @peterSobieraj 2 года назад

      @@OdatNurd No. Nothing.
      Also my system works if I manualy select it.

  • @ivanlegranbizarro8102
    @ivanlegranbizarro8102 3 года назад

    Dear OdatNurd, Terminus was removed from Package Control ... Do you know anything about it? I can't reinstall it: '(

    • @OdatNurd
      @OdatNurd  3 года назад +1

      Yesterday GitHub removed access for some methods of Access control in favor of some new ones, and package control is having a bit of a problem finding packages as a result. It's being worked on though

    • @ivanlegranbizarro8102
      @ivanlegranbizarro8102 3 года назад

      @@OdatNurd Thank you very much for your answer!

  • @AreebTahir3230
    @AreebTahir3230 3 года назад

    I've created a python build system which is very nice for any type of program.
    But when I press Ctrl+shift+B, it is not in option.
    Please help.

    • @OdatNurd
      @OdatNurd  3 года назад

      Make sure that the file has the sublime-build extension and is in your User package

    • @AreebTahir3230
      @AreebTahir3230 3 года назад

      @@OdatNurd yes it has and it is working extension.
      But is not showing in option whenever I press Ctrl +shift+b

    • @OdatNurd
      @OdatNurd  3 года назад

      @@AreebTahir3230 Build WIth will only show you builds that Sublime things are for the current situation; that would be any build that says it applies if the Tools > Build System menu is set to automatic, or only builds from the currently selected build file if you pick one directly in that menu. Do you see your build in the menu?

    • @AreebTahir3230
      @AreebTahir3230 3 года назад

      @@OdatNurd
      No. But it's ok
      I use terminus mostly.
      I have fully customized sublime text, also added a run button like vscode.
      But I need error highlighting in CPP as like as vscode have.

    • @OdatNurd
      @OdatNurd  3 года назад

      @@AreebTahir3230 For something like that I would recommend the LSP package; it provides code intelligence using the same technology that VSC uses. I don't have any videos on that at the moment but they're in the list of topics to cover.

  • @КостяЕвколиди
    @КостяЕвколиди 2 года назад

    Can you please help me? I am coding in c++ and i want to make 2 different keybinding, one for compile + run and second one just for run (if its already compiled and doesn't need to be compiled again), but i haven't found how to do that. The only thing i found is that i can make 2 different buildings and manually select what i want to use (for example with hotkey ctrl + shift + B), but it takes a lot of time to always select build option that i need
    UPD: I'm sorry, i spent some time before writting this comment, and excatly when i wrote it i found how to do this. Anyway thank you!

    • @OdatNurd
      @OdatNurd  2 года назад

      Awesome, glad you got it working the way you wanted to!