You may have noticed that Twig debug mode does not output the template suggestions for views twig templates. The issue is currently needs review.
Never fear though! Views template suggestions work similar to what they did in D7.
Views twig templates naming
- Display output:
views-view.html.twig
,views-view--VIEWNAME.html.twig
,views-view--attachment.html.twig
,views-view--VIEWNAME--attachment.html.twig
,views-view--DISPLAYNAME.html.twig
,views-view--VIEWNAME--DISPLAYNAME.html.twig
,views-view--default.html.twig
,views-view--default.html.twig
,views-view--DISPLAYNAME-1.html.twig
,views-view--VIEWNAME--DISPLAYNAME-1.html.twig
- Style output:
views-view-unformatted.html.twig
,views-view-unformatted--VIEWNAME.html.twig
,views-view-unformatted--DISPLAYNAME.html.twig
,views-view-unformatted--VIEWNAME--DISPLAYNAME.html.twig
,views-view-unformatted--default.html.twig
,views-view-unformatted--default.html.twig
,views-view-unformatted--DISPLAYNAME-1.html.twig
,views-view-unformatted--VIEWNAME--DISPLAYNAME-1.html.twig
- Row style output:
views-view-fields.html.twig
,views-view-fields--VIEWNAME.html.twig
,views-view-fields--DISPLAYNAME.html.twig
,views-view-fields--VIEWNAME--DISPLAYNAME.html.twig
,views-view-fields--default.html.twig
,views-view-fields--default.html.twig
,views-view-fields--DISPLAYNAME-1.html.twig
,views-view-fields--VIEWNAME--DISPLAYNAME-1.html.twig
- Field Content:
views-view-field.html.twig
,views-view-field--FIELDNAME.html.twig
,views-view-field--VIEWNAME.html.twig
,views-view-field--VIEWNAME--FIELDNAME.html.twig
,views-view-field--DISPLAYNAME.html.twig
,views-view-field--DISPLAYNAME--FIELDNAME.html.twig
,views-view-field--VIEWNAME--DISPLAYNAME.html.twig
,views-view-field--VIEWNAME--DISPLAYNAME--FIELDNAME.html.twig
,views-view-field--DISPLAYNAME-1.html.twig
,views-view-field--DISPLAYNAME-1--FIELDNAME.html.twig
,views-view-field--VIEWNAME--DISPLAYNAME-1.html.twig
,views-view-field--VIEWNAME--DISPLAYNAME-1--FIELDNAME.html.twig
When in doubt, fire up a D7 site, and go into the theming section of the view, and see the template suggestions there.