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.

CCS Toggle Function Definition Feature Problem



Hello Ti Community,

When I try to toggle function definition from .h to .cpp file I have these questions and problems below.

1. Implementation in .h file becomes a inline method in .h file first and then moves to .cpp. Is there a way to skip creating inline function?
2. I have to wait for a few seconds before each toggle command else it throws an error (Cannot work without definition)
3. I can't select multiple methods and apply this feature. I want to be able to click on a class and move all implementations in .h file to .cpp instead of selecting one at at time.

Here is an example with Visual Studio: docs.wholetomato.com/default.asp


Any tips on how to achieve the following above?  Or is this post better suited to an eclipse forum?

Im using version: 10.3.1.00003



Thanks,

Utsav

  • Hello Utsav,

    I do not see a way to change the behavior of #1 and #3. I have quick look at various CDT documentation and discussions on this and have not found anything yet. I will see if I can come up with something. Let me know if you find something in your investigations.

    I can't reproduce #2. I can select the method name and then quickly press ALT+SHIFT+T and have it toggle without error (though I need to wait about a ~1 sec between each toggle otherwise the editor cannot keep up - but no error).

    Thanks

    ki

  • No problem Ki, thanks for putting the time in to look at this. Problem no 2 seems specific to my setup then. I've since had an update from the eclipse forums. They aren't very keen on having this feature from the discussions I've had, so its better to do this in another ide (Visual Studio) if the need arises and copy-paste it back to CCS.

  • Thank you for proving the update regarding the feedback from the Eclipse community. It is unfortunate that they are resistant to your suggestions since I would find them very helpful also. However, there is quite a backlog of open issues with the CDT editor so I suppose it is understandable.