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

Автор Enchom, 10 лет назад, По-английски

Hello everybody,

I am going to participate in this year's IOI in Taiwan. During the competition we will be provided a laptop with a few editors and compilers, and Ubuntu. Here are some more details.

At home I use the latest version of CodeBlocks editor under Windows and I'm really used to it. A lovely feature it has is that when I simply type :

{

the editor automaticly types :

{
    //blank shifted line (comment for vizualization only)
}

However, when I tested the IOI environment in VirtualBox, I couldn't find the option to make CodeBlocks do that. When I typed "{" it simply turned it in "{}". The weird thing is that when I installed CodeBlocks on my laptop (Windows again), it automatically started doing the shifting, without any settings.

It may sound like I'm being very pretentious here, but it simply will improve my coding speed and comfort when coding, so I'd be very grateful if someone can tell me how exactly can I change the CodeBlocks' settings so it can do the auto-shifting and completion as described above.

Thank you in advance! :)

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

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

I did the exact same post a few months ago. I was really upset about that issue. Luckily some kind soul shared with me the solution.

All you need to do is download the contrib plugins. Once you do that, everything will work perfectly!

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

    So there isn't a way I can get the same effect by simply editing settings :( ?

    Because on IOI, you aren't allowed to bring any memory devices, and you don't have access to the Internet.

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

      You can ask the organizers to install the codeblocks-contrib package (they said that the environment you downloaded isn't necessarily the final version). However, maybe this request should have been made earlier...

      Anyway, consider the fact that your typing speed will likely not increase your score :) (it's very important in ACM ICPC or Codeforces, instead)

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

        Being comfortable with your IDE is always important. Whether it's Codeforces, Topcoder, USACO, ACM/ICPC or IOI. If you gotta think what you're typing because the editor doesn't do what you expect it to do, you not only lose speed, but you lose concentration as well, which can end up being fatal.

        Anyway, try to ask the organizers if they can do something about it. They must do something about it if you ask me. After all, it's not like you're the only guy who likes auto-indentation.