[Qt-creator] [Qt Creator] open file in the current instance editor from the embedded terminal

Alexander Drozdov adrozdoff at gmail.com
Thu Nov 28 05:20:43 CET 2024


Hi guys!

Maybe I'm wrong and such behavior already exists, but... For the Linux
systems (at least) I use the linked bash script to open files in the
current instance of the Qt Creator for editing.

The Idea is simple: scan parents using `ps -o ppid= -p ...` starting from
`$PPID` and search process with name `qtcreator`, if found - call it with
`... -pid $pid ...` parameter and pass file name.

Work like a charm for me.

Script: https://gist.github.com/h4tr3d/52a164b0e4cb51abab85ffcd32609035

Maybe useful for somebody.

-- 
WBR, Alexander Drozdov
http://htrd.su
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/qt-creator/attachments/20241128/7b00cb74/attachment.htm>


More information about the Qt-creator mailing list