cLion GUI h & cpp ide editor auto helper, config - feature ?
Answered
Hey
Bit of a feature request.
It would be quite awesome if when I 2x on .h file it would open on left side of ide editing space, and if I right click in the .h to have an option to open corresponding .cpp file on the right side of the editing screen space. So that its split in 2, left & right.
I usually have them side by side, and an tool or maybe plugin like this would make my live a lot easier. Keep it clean, left side .h, right side .cpp :- )
I guess its about having a "designated parent" widgets where to we can parent files by type & have a utility to open coresponding cpp or h file.
TIA.
Please sign in to leave a comment.
Hello! Isn't splitting the editor window suitable for you? You can open .h and .cpp files, right-click the editor tab with the .cpp file, select the Move Right option and the Editor window will be splitted: the .h file will be on the left side, the .cpp file will be on the right side.
Also to make it easier you can assign some shortcut for this action in File | Settings | Keymap.
Hey
Thats what I'm doing now, but with large projects, say 200 files+ and lots of creation/editing/refactoring its getting quite tedious.... An automatic "layouting" would go a long way.
Fairly having a split 1x1 .h x .cpp would be awesome, a further step split 2x2 would be even better. then I can open 2 h/cpp files and compare them, work faster. I think it's about automatic a workflow and window management more than me having to do it 200x a day.I guess if I have 2 window, with 10 classes each, then if I click on another class on different file, then the same file would show up on window next to it with .cpp data. same for cpp to h ?
I guess a triple layout would be good, like 1x1 + 1, the 1x1 would split files like if I right click > openInLayoutA(or layoutA/B if I have 2x2) the 3rd window would be used to display files that I just 2x click on.
TIA
Regards
Dariusz
Dariusz, thank you for the details. Feel free to create a feature request in our tracker: https://youtrack.jetbrains.com/issues/CPP.
Thanks will drop it there.