Skip to main content

Posts

Showing posts with the label sublime

Sublime Text 3 - Multi Select and Multi Edit

I use Sublime Text 3 text editor for viewing and editing files. Sublime Text offers various features. There is one important and useful feature - You can search and select multiple instances at one and replace them with a different text. For example, if you have text "-test" in multiple places in the document and if you want to replace the text with "-prod" at once for all the selected instances, then here are simple steps: Open the document in Sublime Text Select any string in the document, for my example I am selecting "-test" Now press: MAC: Command + Control + G Windows: Alt + F3 Now you will notice that all the occurrences are selected and highlighted Now hit Delete or Backspace Type different text, for my example I am typing "-prod" You can see that the text is now replaced with new value   P.S. Click here to access my other posts.

Sublime Text 3 - Pertty Format JSON

You must be looking for some easy options to pretty format JSON data. Well, there are many websites which provides this capability and you can pretty format JSON data in browser. I use Sublime Text 3 text editor, and I was trying to see if I can pretty format JSON within the text editor itself. You can follow these simple steps: Open Sublime Text 3 text editor If you are using MAC OS Press Command + Shift + P Then select "Install Package" Search for "Pretty JSON" Install If you are using Windows OS Press CTRL + Shift + P Then select "Install Package" Search for "Pretty JSON" Install Once the installation is complete, select JSON string If you are using MAC OS Press Command + Control + J If you are using Windows OS Press CTRL + ALT + J Thats it! Now you don't have to copy your JSON string from Sublime Text 3, paste in your browser, format it, then copy formatted JSON from browser and paste it back in your Sublime...