Contesting_pov's blog

By Contesting_pov, history, 2 years ago, In English

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.

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

»
2 years ago, # |
  Vote: I like it 0 Vote: I do not like it

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

»
2 years ago, # |
  Vote: I like it +1 Vote: I do not like it

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 .

»
2 years ago, # |
  Vote: I like it +12 Vote: I do not like it

VS code

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

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

    • »
      »
      »
      2 years ago, # ^ |
        Vote: I like it +1 Vote: I do not like it

      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.

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

        oh, is terminal linked to vs code? I didn't know that. Plus it gives HOMEBREW_NO_INSTALL_CLEANUP error, any ideas?

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

        installed. still getting std.h error wtf

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

        is there any way you can type stdc++.h in your macintosh hd file and tell me where the file is?

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

          What errors are you seeing?

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

            fatal error bits/stdc++.h not found

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

              And you are currently using brew gcc?

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

                I first installed Mac developer thing which downloaded clang, now I downloaded brew (which is working fs) but yeah

    • »
      »
      »
      2 years ago, # ^ |
        Vote: I like it +4 Vote: I do not like it

      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.

      • »
        »
        »
        »
        2 years ago, # ^ |
        Rev. 3   Vote: I like it +8 Vote: I do not like it

        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.

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

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

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

          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.)