1
0
Fork 0
mirror of https://github.com/LadybirdBrowser/ladybird.git synced 2025-06-10 18:10:56 +09:00

Documentation: Prevent QtCreator from formatting IPC as C++

This commit is contained in:
Ben Wiederhake 2021-09-04 17:29:44 +02:00 committed by Andreas Kling
parent 1999b66f38
commit e7e2ccc04c
Notes: sideshowbarker 2024-07-18 04:46:23 +09:00

View file

@ -59,6 +59,14 @@ Use your own judgement whether you want to include such changes. Generally speak
You may want to read up what `git add -p` does (or `git checkout -p`, to undo).
QtCreator tends to interpret IPC definitions as C++ headers, and then tries to format them. This is not useful. One way to avoid that is telling QtCreator that IPC definitions are not C++ headers.
- In QtCreator, go to "Tools > Options…"
- Type "beau" in the search box, go to "Environment > MIME Types"
- In the little search box, type "plain", and select "text/plain"
- In the "details" section, you should now see the list of Patterns, something like `*.txt;*.asc;*,v`. Extend it in the following way: `*.txt;*.asc;*,v;*.ipc;*.gml`
- Click "OK" to close the dialog.
- Maybe you need to close and open again the IPC files. You can check what QtCreator is doing by right-clicking the filename in the editor tab, and clicking "Properties...". In the third line, you should see `MIME type: text/plain`.
## License template
You may have noticed how Andreas just types `lic` and the [license appears](https://youtu.be/i0J6J1Twwyo?t=346).