{"id":1677,"date":"2023-05-26T12:44:22","date_gmt":"2023-05-26T12:44:22","guid":{"rendered":"https:\/\/blog.hostinger.io\/fr\/support\/2023\/05\/26\/7949267-comment-utiliser-l-editeur-de-fichiers-chez-hostinger\/"},"modified":"2025-08-26T21:02:31","modified_gmt":"2025-08-26T21:02:31","slug":"7949267-comment-utiliser-l-editeur-de-fichiers-chez-hostinger","status":"publish","type":"post","link":"https:\/\/www.hostinger.com\/fr\/support\/7949267-comment-utiliser-l-editeur-de-fichiers-chez-hostinger\/","title":{"rendered":"Comment Utiliser l&rsquo;\u00c9diteur de Fichiers chez Hostinger"},"content":{"rendered":"<p class=\"no-margin\">Vous pouvez ouvrir et modifier n&rsquo;importe quel fichier texte &agrave; partir du <b><a href=\"\/fr\/support\/4548688\" target=\"_blank\" class=\"intercom-content-link\">gestionnaire de fichiers<\/a><\/b>, tels que les fichiers avec des extensions <b>html<\/b> ou <b>php<\/b>, le <b>fichier .htaccess<\/b>, etc. Il offre un moyen pratique de travailler sur vos fichiers sans avoir &agrave; les t&eacute;l&eacute;charger sur votre appareil local et &agrave; les re-t&eacute;l&eacute;charger &agrave; chaque fois.<\/p><div class=\"intercom-interblocks-callout\" style=\"background-color: #feedaf80;border-color: #fbc91633\">\n<p class=\"no-margin\">Apporter des modifications &agrave; vos fichiers peut <b>entra&icirc;ner des erreurs<\/b> sur votre site Web &ndash; cr&eacute;ez une copie du fichier avant de le modifier et proc&eacute;dez avec prudence !<\/p>\n<\/div><p class=\"no-margin\">\n<\/p><h1 id=\"h_b6c78420ab\">Comment ouvrir l&rsquo;&eacute;diteur de fichiers<\/h1><p class=\"no-margin\">Pour ouvrir l&rsquo;&eacute;diteur de fichiers &agrave; partir du Gestionnaire de fichiers, double-cliquez sur le nom du fichier. Vous pouvez &eacute;galement cliquer avec le bouton droit sur le fichier et s&eacute;lectionner <b>Edit<\/b> :<\/p><p class=\"no-margin\">\n<\/p><div class=\"intercom-container intercom-align-center\"><img decoding=\"async\" src=\"\/fr\/support\/wp-content\/uploads\/sites\/56\/2023\/05\/11b3fc98-a70f-41a4-9556-b01dc08338d7.jpg\" alt=\"L'option d'&eacute;dition du gestionnaire de fichiers chez Hostinger\"><\/div><h1 id=\"h_c7348f38ae\">Comment utiliser l&rsquo;&eacute;diteur de fichiers<\/h1><p class=\"no-margin\">L&rsquo;&eacute;diteur de fichiers comporte les sections et boutons suivants :<\/p><p class=\"no-margin\">\n<\/p><div class=\"intercom-container intercom-align-center\"><img decoding=\"async\" src=\"\/fr\/support\/wp-content\/uploads\/sites\/56\/2023\/05\/5ca3a4fc-64ca-4401-aece-5800655c167e.jpg\" alt=\"Les sections et les boutons de l'&eacute;diteur de fichiers\"><\/div><ol>\n<li>\n<p class=\"no-margin\"><b>Bouton Fermer<\/b> &ndash; Quitte l&rsquo;&eacute;diteur de fichiers<\/p>\n<\/li>\n<li>\n<p class=\"no-margin\"><b>Nom<\/b> du fichier actuellement ouvert<\/p>\n<\/li>\n<li>\n<p class=\"no-margin\"><b>Bouton Enregistrer<\/b> &ndash; Enregistre les modifications<\/p>\n<\/li>\n<li>\n<p class=\"no-margin\">Le <b>chemin<\/b> du r&eacute;pertoire racine de votre site Web (<b>public_html<\/b>) vers le fichier actuellement ouvert<\/p>\n<\/li>\n<li>\n<p class=\"no-margin\"><b>Num&eacute;ros de ligne<\/b> &ndash; Indique le num&eacute;ro de ligne. Il affichera &eacute;galement des indicateurs d&rsquo;erreur de syntaxe et la <b><a href=\"#h_7e59b2e644\" target=\"_blank\" class=\"intercom-content-link\">bascule de pliage de code,<\/a><\/b> le cas &eacute;ch&eacute;ant<\/p>\n<\/li>\n<li>\n<p class=\"no-margin\"><b>Zone de l&rsquo;&eacute;diteur<\/b> &ndash; Affiche le contenu du fichier. Pour commencer &agrave; &eacute;diter le fichier, cliquez sur n&rsquo;importe quelle ligne pour afficher le curseur<\/p>\n<\/li>\n<\/ol><p class=\"no-margin\">\n<\/p><p class=\"no-margin\">L&rsquo;&eacute;diteur prend en charge la coloration syntaxique pr&ecirc;te &agrave; l&rsquo;emploi pour les langages de programmation les plus courants, en marquant les erreurs avec un &#10060; &agrave; c&ocirc;t&eacute; de la ligne. Passez la souris dessus pour trouver plus d&rsquo;informations sur l&rsquo;erreur :<\/p><p class=\"no-margin\">\n<\/p><div class=\"intercom-container intercom-align-center\"><img decoding=\"async\" src=\"\/fr\/support\/wp-content\/uploads\/sites\/56\/2023\/05\/24c25c8e-2398-4029-942b-325012d2158d.jpg\" alt=\"L'&eacute;diteur de fichiers affichant une erreur de syntaxe et une description de l'erreur\"><\/div><p class=\"no-margin\">Une fois que vous avez termin&eacute; de modifier votre fichier, assurez-vous de cliquer sur le <b>bouton Enregistrer<\/b> pour appliquer les modifications. Si vous ne souhaitez pas les conserver, cliquez sur le <b>bouton Fermer<\/b> &ndash; une fen&ecirc;tre contextuelle indiquera que les modifications seront perdues. Cliquez sur <b>OK<\/b> pour quitter sans appliquer les modifications.<\/p><p class=\"no-margin\">\n<\/p><h1 id=\"h_2e6c43d4fc\">Raccourcis clavier<\/h1><p class=\"no-margin\">L&rsquo;&eacute;diteur de fichiers prend en charge les raccourcis clavier suivants :<\/p><p class=\"no-margin\">\n<\/p><h2 id=\"h_52be8ec1a4\">La navigation<\/h2><div class=\"intercom-interblocks-table-container\">\n<table role=\"presentation\">\n<tbody>\n<tr>\n<td style=\"background-color: #e3e7fa\">\n<p class=\"no-margin\"><b>Commande<\/b><\/p>\n<\/td>\n<td style=\"background-color: #e3e7fa\">\n<p class=\"no-margin\"><b>Windows\/Linux<\/b><\/p>\n<\/td>\n<td style=\"background-color: #e3e7fa\">\n<p class=\"no-margin\"><b>Mac OS<\/b><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p class=\"no-margin\">Trouver<\/p>\n<\/td>\n<td>\n<p class=\"no-margin\">Ctrl+F<\/p>\n<\/td>\n<td>\n<p class=\"no-margin\">&#8984;+F<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p class=\"no-margin\">Trouver tout<\/p>\n<\/td>\n<td>\n<p class=\"no-margin\">Ctrl+Alt+K<\/p>\n<\/td>\n<td>\n<p class=\"no-margin\">&#8984;+Option+K<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p class=\"no-margin\">Rechercher suivant<\/p>\n<\/td>\n<td>\n<p class=\"no-margin\">Ctrl+K ou Alt+K<\/p>\n<\/td>\n<td>\n<p class=\"no-margin\">&#8984;+K ou Option+K<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p class=\"no-margin\">Retrouver pr&eacute;c&eacute;dent<\/p>\n<\/td>\n<td>\n<p class=\"no-margin\">Ctrl+Maj+K ou Alt+Maj+K<\/p>\n<\/td>\n<td>\n<p class=\"no-margin\">&#8984;+Maj+K ou Option+Maj+K<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p class=\"no-margin\">Remplacer<\/p>\n<\/td>\n<td>\n<p class=\"no-margin\">Ctrl+H<\/p>\n<\/td>\n<td>\n<p class=\"no-margin\">&#8984;+H<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p class=\"no-margin\">Aller &agrave; l&rsquo;erreur suivante<\/p>\n<\/td>\n<td>\n<p class=\"no-margin\">ALT+E<\/p>\n<\/td>\n<td>\n<p class=\"no-margin\">Options+E<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p class=\"no-margin\">Aller &agrave; l&rsquo;erreur pr&eacute;c&eacute;dente<\/p>\n<\/td>\n<td>\n<p class=\"no-margin\">ALT+Maj+E<\/p>\n<\/td>\n<td>\n<p class=\"no-margin\">Option+Maj+E<\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div><h2 id=\"h_15287a438f\">&Eacute;dition de base<\/h2><div class=\"intercom-interblocks-table-container\">\n<table role=\"presentation\">\n<tbody>\n<tr>\n<td style=\"background-color: #e3e7fa\">\n<p class=\"no-margin\"><b>Commande<\/b><\/p>\n<\/td>\n<td style=\"background-color: #e3e7fa\">\n<p class=\"no-margin\"><b>Windows\/Linux<\/b><\/p>\n<\/td>\n<td style=\"background-color: #e3e7fa\">\n<p class=\"no-margin\"><b>Mac OS<\/b><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p class=\"no-margin\">S&eacute;lectionner tout<\/p>\n<\/td>\n<td>\n<p class=\"no-margin\">Ctrl+A<\/p>\n<\/td>\n<td>\n<p class=\"no-margin\">&#8984;+A<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p class=\"no-margin\">Copier<\/p>\n<\/td>\n<td>\n<p class=\"no-margin\">Ctrl+C<\/p>\n<\/td>\n<td>\n<p class=\"no-margin\">&#8984;+C<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p class=\"no-margin\">Couper<\/p>\n<\/td>\n<td>\n<p class=\"no-margin\">Ctrl+X<\/p>\n<\/td>\n<td>\n<p class=\"no-margin\">&#8984;+X<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p class=\"no-margin\">Coller<\/p>\n<\/td>\n<td>\n<p class=\"no-margin\">Ctrl+V<\/p>\n<\/td>\n<td>\n<p class=\"no-margin\">&#8984;+V<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p class=\"no-margin\">Annuler<\/p>\n<\/td>\n<td>\n<p class=\"no-margin\">Ctrl+Z<\/p>\n<\/td>\n<td>\n<p class=\"no-margin\">&#8984;+Z<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p class=\"no-margin\">Refaire<\/p>\n<\/td>\n<td>\n<p class=\"no-margin\">Ctrl+Y ou Ctrl+Maj+Z<\/p>\n<\/td>\n<td>\n<p class=\"no-margin\">&#8984;+Y ou &#8984;+Maj+Z<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p class=\"no-margin\">Basculer le mode d&rsquo;&eacute;crasement<\/p>\n<\/td>\n<td>\n<p class=\"no-margin\">Ins&eacute;rer<\/p>\n<\/td>\n<td>\n<p class=\"no-margin\">Ins&eacute;rer<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p class=\"no-margin\">Indenter<\/p>\n<\/td>\n<td>\n<p class=\"no-margin\">Tabulation<\/p>\n<\/td>\n<td>\n<p class=\"no-margin\">Tabulation<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p class=\"no-margin\">D&eacute;sintender<\/p>\n<\/td>\n<td>\n<p class=\"no-margin\">Maj+Tabulation<\/p>\n<\/td>\n<td>\n<p class=\"no-margin\">Maj+Tabulation<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p class=\"no-margin\">Indenter le bloc<\/p>\n<\/td>\n<td>\n<p class=\"no-margin\">Ctrl+]<\/p>\n<\/td>\n<td>\n<p class=\"no-margin\">&#8984;+]<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p class=\"no-margin\">D&eacute;sintender le bloc<\/p>\n<\/td>\n<td>\n<p class=\"no-margin\">Ctrl+[<\/p>\n<\/td>\n<td>\n<p class=\"no-margin\">&#8984;+[<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p class=\"no-margin\">Convertir la s&eacute;lection en majuscule<\/p>\n<\/td>\n<td>\n<p class=\"no-margin\">Ctrl+U<\/p>\n<\/td>\n<td>\n<p class=\"no-margin\">&#8984;+U<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p class=\"no-margin\">Supprimer toute la ligne<\/p>\n<\/td>\n<td>\n<p class=\"no-margin\">Ctrl+D<\/p>\n<\/td>\n<td>\n<p class=\"no-margin\">&#8984;+D<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p class=\"no-margin\">Dupliquer la s&eacute;lection ou la ligne courante<\/p>\n<\/td>\n<td>\n<p class=\"no-margin\">CTRL+Maj+D<\/p>\n<\/td>\n<td>\n<p class=\"no-margin\">&#8984;+Maj+D<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p class=\"no-margin\">Trier les lignes s&eacute;lectionn&eacute;es par ordre alphab&eacute;tique<\/p>\n<\/td>\n<td>\n<p class=\"no-margin\">Ctrl+Alt+S<\/p>\n<\/td>\n<td>\n<p class=\"no-margin\">&#8984;+Option+S<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p class=\"no-margin\">Basculer le commentaire*<\/p>\n<\/td>\n<td>\n<p class=\"no-margin\">Ctrl+\/<\/p>\n<\/td>\n<td>\n<p class=\"no-margin\">&#8984;+\/<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p class=\"no-margin\">Basculer le commentaire de blocage*<\/p>\n<\/td>\n<td>\n<p class=\"no-margin\">Ctrl+Maj+\/<\/p>\n<\/td>\n<td>\n<p class=\"no-margin\">&#8984;+Maj+\/<\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div><p class=\"no-margin\">* Disponible uniquement si le fichier est &eacute;crit dans une langue prise en charge.<\/p><p class=\"no-margin\">\n<\/p><h2 id=\"h_1b0f5807e7\">Modification de blocs de code<\/h2><p class=\"no-margin\">Utilisez les raccourcis suivants en s&eacute;lectionnant une ou plusieurs lignes de code &ndash; elles seront plac&eacute;es au dessus ou en dessous de la s&eacute;lection courante selon la commande :<\/p><div class=\"intercom-interblocks-table-container\">\n<table role=\"presentation\">\n<tbody>\n<tr>\n<td style=\"background-color: #e3e7fa\">\n<p class=\"no-margin\"><b>Commande<\/b><\/p>\n<\/td>\n<td style=\"background-color: #e3e7fa\">\n<p class=\"no-margin\"><b>Windows\/Linux<\/b><\/p>\n<\/td>\n<td style=\"background-color: #e3e7fa\">\n<p class=\"no-margin\"><b>Mac OS<\/b><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p class=\"no-margin\">D&eacute;placer les lignes vers le haut<\/p>\n<\/td>\n<td>\n<p class=\"no-margin\">Alt+Fl&egrave;che vers le haut<\/p>\n<\/td>\n<td>\n<p class=\"no-margin\">Option+Fl&egrave;che vers le haut<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p class=\"no-margin\">Copier les lignes vers le haut<\/p>\n<\/td>\n<td>\n<p class=\"no-margin\">Alt+Maj+Fl&egrave;che vers le haut<\/p>\n<\/td>\n<td>\n<p class=\"no-margin\">OptionMaj+Fl&egrave;che vers le haut<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p class=\"no-margin\">D&eacute;placer les lignes vers le bas<\/p>\n<\/td>\n<td>\n<p class=\"no-margin\">Alt+Fl&egrave;che vers le bas<\/p>\n<\/td>\n<td>\n<p class=\"no-margin\">Option+Fl&egrave;che vers le bas<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p class=\"no-margin\">Copiez les lignes vers le bas<\/p>\n<\/td>\n<td>\n<p class=\"no-margin\">Alt+Maj+Fl&egrave;che vers le bas<\/p>\n<\/td>\n<td>\n<p class=\"no-margin\">OptionMaj+Fl&egrave;che vers le bas<\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div><h2 id=\"h_7e59b2e644\">Pliage de code<\/h2><p class=\"no-margin\">Si le fichier est &eacute;crit dans un langage pris en charge, le pliage et le d&eacute;pliage d&eacute;tecteront les r&eacute;gions de code et permettront l&rsquo;expansion\/la contraction &agrave; l&rsquo;aide du pli &agrave; bascule.<\/p><p class=\"no-margin\">\n<\/p><p class=\"no-margin\">Le pli &agrave; bascule peut &eacute;galement &ecirc;tre utilis&eacute; en cliquant sur la fl&egrave;che dans la section du num&eacute;ro de ligne.<\/p><div class=\"intercom-interblocks-table-container\">\n<table role=\"presentation\">\n<tbody>\n<tr>\n<td style=\"background-color: #e3e7fa\">\n<p class=\"no-margin\"><b>Commande<\/b><\/p>\n<\/td>\n<td style=\"background-color: #e3e7fa\">\n<p class=\"no-margin\"><b>Windows\/Linux<\/b><\/p>\n<\/td>\n<td style=\"background-color: #e3e7fa\">\n<p class=\"no-margin\"><b>Mac OS<\/b><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p class=\"no-margin\">Basculer le pli<\/p>\n<\/td>\n<td>\n<p class=\"no-margin\">F2<\/p>\n<\/td>\n<td>\n<p class=\"no-margin\">F2<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p class=\"no-margin\">Pli<\/p>\n<\/td>\n<td>\n<p class=\"no-margin\">Alt+L<\/p>\n<\/td>\n<td>\n<p class=\"no-margin\">Option+L ou &#8984;+F1<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p class=\"no-margin\">Se d&eacute;rouler<\/p>\n<\/td>\n<td>\n<p class=\"no-margin\">Alt+Maj+L ou Ctrl+Maj+F1<\/p>\n<\/td>\n<td>\n<p class=\"no-margin\">Option+Maj+L ou &#8984;+Maj+F1<\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div><p class=\"no-margin\">C&rsquo;est &ccedil;a! Vous savez maintenant comment modifier vos fichiers &agrave; l&rsquo;aide de l&rsquo;&eacute;diteur de fichiers &#128640;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Travailler avec des fichiers texte directement \u00e0 partir de l&rsquo;option d&rsquo;\u00e9dition du gestionnaire de fichiers<\/p>\n","protected":false},"author":581,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"include_on_kodee":true,"footnotes":""},"categories":[167],"tags":[],"class_list":["post-1677","post","type-post","status-publish","format-standard","hentry","category-gestionnaire-de-fichiers-gestionnaire-de-fichiers"],"hreflangs":[{"locale":"en-US","link":"https:\/\/www.hostinger.com\/support\/7949267-how-to-use-the-file-editor-at-hostinger\/","default":1},{"locale":"es-ES","link":"https:\/\/www.hostinger.com\/es\/support\/7949267-como-usar-el-editor-de-archivos-en-hostinger\/","default":0},{"locale":"fr-FR","link":"https:\/\/www.hostinger.com\/fr\/support\/7949267-comment-utiliser-l-editeur-de-fichiers-chez-hostinger\/","default":0},{"locale":"id-ID","link":"https:\/\/www.hostinger.com\/id\/support\/7949267-cara-menggunakan-file-editor-di-file-manager-hostinger\/","default":0},{"locale":"pt-PT","link":"https:\/\/www.hostinger.com\/br\/support\/7949267-como-usar-o-editor-de-arquivos-da-hostinger\/","default":0},{"locale":"uk-UA","link":"https:\/\/www.hostinger.com\/ua\/support\/7949267----\/","default":0}],"include_on_kodee":true,"_links":{"self":[{"href":"https:\/\/www.hostinger.com\/fr\/support\/wp-json\/wp\/v2\/posts\/1677","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.hostinger.com\/fr\/support\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.hostinger.com\/fr\/support\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.hostinger.com\/fr\/support\/wp-json\/wp\/v2\/users\/581"}],"replies":[{"embeddable":true,"href":"https:\/\/www.hostinger.com\/fr\/support\/wp-json\/wp\/v2\/comments?post=1677"}],"version-history":[{"count":1,"href":"https:\/\/www.hostinger.com\/fr\/support\/wp-json\/wp\/v2\/posts\/1677\/revisions"}],"predecessor-version":[{"id":2640,"href":"https:\/\/www.hostinger.com\/fr\/support\/wp-json\/wp\/v2\/posts\/1677\/revisions\/2640"}],"wp:attachment":[{"href":"https:\/\/www.hostinger.com\/fr\/support\/wp-json\/wp\/v2\/media?parent=1677"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.hostinger.com\/fr\/support\/wp-json\/wp\/v2\/categories?post=1677"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.hostinger.com\/fr\/support\/wp-json\/wp\/v2\/tags?post=1677"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}