Пожалуйста, прочтите новое правило об ограничении использования AI-инструментов. ×

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

Автор Contesting_pov, история, 23 месяца назад, По-английски

Ive been using dual booted windows+linux for a time now. I used sublime text and love it. Now I bought m2 macbook air but I see that sublime isn't working pretty well (for ex. doesn't reopens my files, snippets not working). Is it a bug? If not can you suggest me a text editor (prefer complexity over lightweight)?.

Any suggestions are appreciated and will be read.

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

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

I have been using sublime for 2 years on mac m1 everything works fine maybe you should try to reinstall it.

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

go to project and save your current config in save " workspace as " , whenever the config is lost , go to project and click "open project" and open the config file u saved earlier. Moreover : To exit sublime : use command + q not the red cross .

»
23 месяца назад, # |
  Проголосовать: нравится +12 Проголосовать: не нравится

VS code

  • »
    »
    23 месяца назад, # ^ |
      Проголосовать: нравится 0 Проголосовать: не нравится

    Couldnt install stdc++.h . Did you? How?

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

      Get gcc? A simple "brew install gcc" should suffice. Also, note that "g++" is symlinked to clang, so you might have to manually symlink "g++" to gcc.

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

      Create a directory "bits"(without quotes) near your .cpp file. Next, put "stdc++.h" (without quotes) file in that dir and paste this code into it.

      Now, in .cpp file change #include<bits/stdc++.h> to #include"bits/stdc++.h".

      It will work on both your system and online judges.

      • »
        »
        »
        »
        23 месяца назад, # ^ |
        Rev. 3   Проголосовать: нравится +8 Проголосовать: не нравится

        What name should I give to the lib file? (its stdc++.h)

        Edit: Omg, it worked! Thank you very much. I can't tell how grateful I am right now. I have been trying to do this till yesterday.

      • »
        »
        »
        »
        23 месяца назад, # ^ |
          Проголосовать: нравится 0 Проголосовать: не нравится

        Do you always code like this? Like adding the bits folder in every directory you work?

        • »
          »
          »
          »
          »
          23 месяца назад, # ^ |
            Проголосовать: нравится 0 Проголосовать: не нравится

          No, but if you can't include the original file, I think this might be the easiest solution to go.

          (Technically yes, but I do it for a different purpose.)