How to edit built-in snippets in Sublime Text [Quick Guide][Super Easy Method]
If you want to edit built-in snippets of Sublime Text like for loop and vector etc. just follow these simple steps-
THE STEPS WITH SCREENSHOTS ARE GIVEN BELOW —
Step 1: I assume you’ve already used package control if not go to-
Tools — >Command Palette — >Package Control: Install Package.
Step 2: Search for the PackageResourceViewer in the Package Control and install it.
Step 3: After installation open Command Palette again (Tools →Command Palette) and search for PackageResourceViewer and you’ll see these three entries, after that click on Extract Package —
Step 4: Select desired language from the list, I chose Java, then click on Start Extraction after that you’ll see a dialog like I attached below —
Step 5: Again open Command Palette and search for PackageResourceViewer click on Open Resource this time —
Select Language (Java In my case) → Select “/Snippets” →Select the Snippet you want to edit (For loop in my case)
Now you can edit the snippet to your desired choice , Just edit the snippet and save the file —
Step 1: I assume you’ve already used package control if not go to-
Tools →Command Palette →Package Control: Install Package.
Step 2: Search for the PackageResourceViewer in the Package Control and install it —
Step 3: After installation open Command Palette again (Tools →Command Palette) and search for PackageResourceViewer and you’ll see these three entries, after that click on Extract Package —
Step 4: Select desired language from the list, I chose Java, then click on Start Extraction after that you’ll see a dialog like I attached below —
Step 5: Again open Command Palette and search for PackageResourceViewer click on Open Resource this time —
Select Language (Java In my case) → Select “/Snippets” →Select the Snippet you want to edit (For loop in my case)
Now you can edit the snippet to your desired choice , Just edit the snippet and save the file —
Thank You
— hritikchaudhary