Tetap teratur dengan koleksi
Simpan dan kategorikan konten berdasarkan preferensi Anda.
Secara default, kueri menelusuri nama file dan konten file. Anda dapat membatasi penelusuran hanya ke nama file dengan beberapa cara. Misalnya, Anda dapat menggunakan filter
file untuk menelusuri file menggunakan jalur file tersebut.
Contoh:
file:main
Filter berikut menampilkan hasil yang sama dengan filter file:
filepath
f
path
Anda juga dapat menelusuri nama file dengan mengetik nama dan ekstensinya. Contoh:
[[["Mudah dipahami","easyToUnderstand","thumb-up"],["Memecahkan masalah saya","solvedMyProblem","thumb-up"],["Lainnya","otherUp","thumb-up"]],[["Informasi yang saya butuhkan tidak ada","missingTheInformationINeed","thumb-down"],["Terlalu rumit/langkahnya terlalu banyak","tooComplicatedTooManySteps","thumb-down"],["Sudah usang","outOfDate","thumb-down"],["Masalah terjemahan","translationIssue","thumb-down"],["Masalah kode / contoh","samplesCodeIssue","thumb-down"],["Lainnya","otherDown","thumb-down"]],["Terakhir diperbarui pada 2025-07-26 UTC."],[[["\u003cp\u003eQueries by default search through both filenames and the contents of files.\u003c/p\u003e\n"],["\u003cp\u003eYou can limit searches to filenames only by using filters like \u003ccode\u003efile\u003c/code\u003e, \u003ccode\u003efilepath\u003c/code\u003e, \u003ccode\u003ef\u003c/code\u003e, or \u003ccode\u003epath\u003c/code\u003e, along with the file path.\u003c/p\u003e\n"],["\u003cp\u003eSearching for files by their name and extension is also possible; remember to escape special characters like periods using a backslash.\u003c/p\u003e\n"]]],[],null,["# Searching for files\n\nBy default, queries search both filenames and file contents. You can limit your\nsearch to just filenames in several ways. For example, you can use the\n[`file`](../reference#filters) filter to search for a file by using its path.\nFor example: \n\n file:main\n\nThe following filters return the same results as the `file` filter:\n\n- `filepath`\n- `f`\n- `path`\n\nYou can also search for a file name by typing its name and extension. For\nexample: \n\n f:main\\.java\n\n| **Note:** The preceding example escapes the period (`\\.`). This is so the search doesn't match filenames without periods like mainjava."]]