Sử dụng bộ sưu tập để sắp xếp ngăn nắp các trang
Lưu và phân loại nội dung dựa trên lựa chọn ưu tiên của bạn.
Tệp kê khai dự án Apps Script là một tệp JSON đặc biệt chỉ định thông tin cơ bản về dự án mà Apps Script cần để chạy tập lệnh thành công.
Apps Script tự động tạo và cập nhật tệp kê khai dự án khi bạn tạo dự án tập lệnh và thực hiện các thay đổi trong trình chỉnh sửa Apps Script. Trong hầu hết các trường hợp, bạn không bao giờ cần xem hoặc chỉnh sửa tệp kê khai trực tiếp; tuy nhiên, trong một số trường hợp, việc này có thể hữu ích hoặc bắt buộc.
Cấu trúc của tệp kê khai và các trường JSON của tệp này được mô tả trong hướng dẫn tham khảo Cấu trúc tệp kê khai.
Chỉnh sửa tệp kê khai
Theo mặc định, trình chỉnh sửa Apps Script sẽ ẩn các tệp kê khai để bảo vệ chế độ cài đặt dự án Apps Script của bạn. Hãy làm theo các bước sau để hiển thị tệp kê khai dự án bị ẩn trong trình chỉnh sửa Apps Script:
Mở dự án tập lệnh trong trình chỉnh sửa Apps Script.
Nhấp vào Project Settings (Cài đặt dự án) settings.
Chọn hộp đánh dấu Hiển thị tệp kê khai "appsscript.json" trong trình chỉnh sửa.
Tệp kê khai xuất hiện dưới dạng một tệp dự án có tên là appsscript.json. Bạn có thể chỉnh sửa tệp này ngay trong trình chỉnh sửa và lưu mọi thay đổi bạn thực hiện. Để ẩn tệp kê khai sau khi thực hiện các thay đổi, hãy lặp lại các bước trước và bỏ chọn hộp Hiển thị tệp kê khai "appsscript.json" trong trình chỉnh sửa.
[null,null,["Cập nhật lần gần đây nhất: 2025-08-31 UTC."],[[["\u003cp\u003eAn Apps Script project manifest (\u003ccode\u003eappsscript.json\u003c/code\u003e) is a JSON file containing essential project information that Apps Script needs for proper execution.\u003c/p\u003e\n"],["\u003cp\u003eWhile Apps Script automatically manages the manifest, developers can view and edit it to adjust project settings and configurations.\u003c/p\u003e\n"],["\u003cp\u003eThe manifest structure is detailed in a separate reference guide, and incorrect modifications can impact project functionality or deployment.\u003c/p\u003e\n"],["\u003cp\u003eTo access and edit the manifest, enable the "Show 'appsscript.json' manifest file in editor" option in the project settings within the Apps Script editor.\u003c/p\u003e\n"],["\u003cp\u003eExercise caution when editing the manifest, ensuring its correctness to avoid issues with saving deployments or passing publication review for published projects.\u003c/p\u003e\n"]]],[],null,["# Manifests\n\nAn Apps Script project *manifest* is a special JSON file that specifies a\nbasic project information that Apps Script needs to run the script\nsuccessfully.\n\nApps Script automatically creates and updates the project manifest as you\ncreate your script project and make changes in the Apps Script editor. In most\ncases you never need to view or edit the manifest directly; however, in\ncertain situations it may be beneficial or required.\n\nThe structure of the manifest file and its JSON fields are described in\nthe [Manifest structure](/apps-script/manifest) reference\nguide.\n\nEditing a manifest\n------------------\n\nThe Apps Script editor hides manifest files by default in order to protect\nyour Apps Script project settings. Follow these steps to make a hidden project\nmanifest visible in the Apps Script editor:\n\n1. Open the script project in the Apps Script editor.\n2. Click **Project Settings** settings.\n3. Select the **Show \"appsscript.json\" manifest file in editor** checkbox.\n\nThe manifest file appears as a project file named `appsscript.json`. You\ncan edit this file directly in the editor and save any changes you make. To hide\nthe manifest file after you make your changes, repeat the previous steps and\nclear the **Show \"appsscript.json\" manifest file in editor** checkbox.\n| **Note:** *Hide the manifest when you are done editing.* Your manifest may already contain a number of key:value pairs; these represent the current configuration of your Apps Script project. Exercise care when editing the manifest, as you may inadvertently alter how your script project operates.\n| **Warning:** Make sure you define your manifest file correctly. A poorly defined manifest can prevent you from saving a versioned deployment. A script project that you want to publish can't pass publication review if it lacks required fields or uses OAuth scopes that are too broad."]]