Sublime Forum

Centreing text in Sublime Text

#1

Hello! I am trying to figure out how to centre a line of text in Sublime Text. I go through all of the menu options but I cannot find an option for doing this. Any help would be greatly appreciated!

0 Likes

#2

HI @jabbafett1988. Sublime Text is a code editor and is not intended to be a Rich Text Editor for layout and design. In a Code editor, Centre doesn’t really make sense. It doesn’t have a fixed width - Unlike, say MSWord which is based on the fixed width of an A4 document.

In many programming language such as Python, white space matters and the indent level defines the function of the code. If you were to centre this (whatever that means) the code would break.

If you are seeking a Rich Text Editor that provides layout and design, I would try MSWord, Google Docs, Textedit or any of a number of purpose-built RTF editors

1 Like

#3

Well, there is

	// Draws text centered in the window rather than left aligned
	"draw_centered": false,

Or just shift+f11, enter distraction free mode.

1 Like

#4

Hi @ J, is this a case of HTML, CSS? Being more specific can help one understand exactly what you’re trying to do. I’m not sure if Sublime is suitable for tasks that fit into what text editor like Word could do as suggested by @gbird.

0 Likes

#5

Hi! I want to centre plain text within Sublime. For example, if I am writing a READ.ME or INSTALL.TXT file, I want to be able to centre the title to make it look professional. UltraEdit (one of Sublime Text’s competitors) has paragraph formatting features. I prefer to use Sublime Text, because it is not nearly as expensive.

0 Likes

#6

You get what you pay for.

0 Likes

#7

You posted this exact question in November last year: Paragraph formatting features in Sublime Text

0 Likes