<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/xhtml; charset=utf-8">
</head>
<body>
<div style="font-family:sans-serif"><div style="white-space:normal">
<p dir="auto">On 23 Aug 2019, at 16:14, Umberto Cerrato wrote:</p>
</div>
<div style="white-space:normal"><blockquote style="border-left:2px solid #777; color:#777; margin:0 0 5px; padding-left:5px"><p dir="auto">I found a solution.<br>
<br>
[ *{c,cpp} ]<br>
tabSize = 4<br>
theme = 71D40D9D-AE48-11D9-920A-000D93589AF6</p>
</blockquote></div>
<div style="white-space:normal">
<p dir="auto">The thing in the square brackets is a <a href="https://macromates.com/textmate/manual/references#glob-string" style="color:#3983C4">file system glob</a>, which is what you currently use, but the one above also match files like <code style="background-color:#F7F7F7; border-radius:3px; margin:0; padding:0 0.4em" bgcolor="#F7F7F7">fooc</code> and <code style="background-color:#F7F7F7; border-radius:3px; margin:0; padding:0 0.4em" bgcolor="#F7F7F7">foocpp</code> (as there is no dot in the glob).</p>
<p dir="auto">So instead you should want to use:</p>
<pre style="background-color:#F7F7F7; border-radius:5px 5px 5px 5px; margin-left:15px; margin-right:15px; max-width:90vw; overflow-x:auto; padding:5px" bgcolor="#F7F7F7"><code style="background-color:#F7F7F7; border-radius:3px; margin:0; padding:0" bgcolor="#F7F7F7">[ *.{c,cpp} ]
tabSize = 4
theme = 71D40D9D-AE48-11D9-920A-000D93589AF6
</code></pre>
<p dir="auto">As an alternative to a file system glob, it is possible to use a “scope selector” which would be <code style="background-color:#F7F7F7; border-radius:3px; margin:0; padding:0 0.4em" bgcolor="#F7F7F7">source.c</code> and <code style="background-color:#F7F7F7; border-radius:3px; margin:0; padding:0 0.4em" bgcolor="#F7F7F7">source.c++</code>, for example:</p>
<pre style="background-color:#F7F7F7; border-radius:5px 5px 5px 5px; margin-left:15px; margin-right:15px; max-width:90vw; overflow-x:auto; padding:5px" bgcolor="#F7F7F7"><code style="background-color:#F7F7F7; border-radius:3px; margin:0; padding:0" bgcolor="#F7F7F7">[ 'source.c, source.c++' ]
tabSize = 4
theme = 71D40D9D-AE48-11D9-920A-000D93589AF6
</code></pre>
<p dir="auto">The advantage with this is that it will target all C and C++ files, even if they do not have a <code style="background-color:#F7F7F7; border-radius:3px; margin:0; padding:0 0.4em" bgcolor="#F7F7F7">.c</code> or <code style="background-color:#F7F7F7; border-radius:3px; margin:0; padding:0 0.4em" bgcolor="#F7F7F7">.cpp</code> extension.</p>
</div>
</div>
</body>
</html>