This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Compiler/CCSTUDIO: 1. How to clone a source file? 2. How to collapse lengthy function?

Part Number: CCSTUDIO

Tool/software: TI C/C++ Compiler

Hi, there.

1. Does CCStudio support clone function to clone a source file in order to read both concurrently?

I tried to use QuickAccess with "shortcut, hotkey and clone" fed into, but find nothing.

2. If one function is too lengthy to read, is there any feature that CCStudio supports to collapse it?

Thank you!

  • Hi,

    1. You can simply hit Ctrl-C + Ctrl-V on the Project Explorer view to copy/paste a source file.
    You can then view them side by side: www.youtube.com/watch

    If you are making changes and would like to navigate through them, you can also check: www.youtube.com/watch

    2. Check: www.youtube.com/watch

    Hope this helps,
    Rafael
  • Hi, I'm not quite understanding first answer.
    I meant that, for example, If I have a source file called A.c and I want to read both parts of A.c at the same time.
    I want a function to "clone" the A.c(that means I will have two A.c) and then I can read these two files just like first video.

    Do you mean that I need to create a blank source file and paste the file to new created source file?

    Second video is clear, thanks
  • Hi,

    Andy Lin94 said:
    I meant that, for example, If I have a source file called A.c and I want to read both parts of A.c at the same time.
    I want a function to "clone" the A.c(that means I will have two A.c) and then I can read these two files just like first video.

    Ah, now I understand. Well, you can open the same file twice inside CCS by choosing a different editor - in other words, you can right-click on the source file and select Open With → Generic Text Editor or Open With → Text Editor.

    The drawback is that you lose the syntax highlighting.

    Regards,

    Rafael

  • Hi, I somehow find the shortkey for this feature.

    Window -> Editor -> Clone

  • Wow, thanks. I learned something today! :)

    Regards,
    Rafael