Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do you format code in Sublime Text editor 3 [duplicate]

How I can format, or beautify php,html,css,javascript code in the Sublime 3 Text editor?

When I go into Edit menu of Sublime 3 there is no option for formatting or beautifying code!

like image 511
Muhammad Shahzad Avatar asked Aug 05 '16 05:08

Muhammad Shahzad


People also ask

How do I beautify the code in Sublime Text?

Beautify on Save sublime-settings : Ctrl+Shift+P or Cmd+Shift+P in Linux/Windows/OS X.

How do you copy in Sublime Text 3?

To quickly duplicate a line of code, place the cursor anywhere in the line and hit Cmd–Shift–D(Mac) or Ctrl–Shift–D (Windows).

How can I beautify PHP code in Sublime Text 3?

Usage. ctrl + shift + P and type Tidy PHP , or you can use the ctrl + alt + T keybinding.


1 Answers

First, install Package Control, the package manager for Sublime Text. Next, you need to install packages that do what you're after: beautify code or maybe just indent it.

like image 95
idleberg Avatar answered Oct 17 '22 19:10

idleberg