4

I'd like to use KDevelop as my editor. How do I tell KDevelop to treat the .ino files as C/C++ files so it does things like syntax highlights and "Jump to Declaration"?

Is there a place to associate file extensions?

101010
  • 14,866
  • 30
  • 95
  • 172

2 Answers2

2

I take it, you can edit Kate's syntax highlighting file for C++, and add .ino extension to extensions attribute of <language> entity. Let me know if that worked for you, so I'll upstream this.

And BTW, there is a work-in-progress KDevelop plugin for developing for embedded systems. You might find it interesting (if you aren't using it already).

arrowd
  • 33,231
  • 8
  • 79
  • 110
  • "Jump to Declaration" will not work with by using Kate syntax highlighting files, though. You'll need a proper patch like https://phabricator.kde.org/D5072 in KDevelop to properly support .ino files. – kfunk Mar 19 '17 at 10:20
0

Open SystemSettings, go to 'Applications -> File Associations', search for 'x-c++src', and add '*.ino' to the list of filename patterns.

Alternatively, edit /usr/share/mime/text/x-c++src.xml manually, which has the same effect.

FLHerne
  • 267
  • 2
  • 5