[Tutor] 2 & 4 or more spaces per indentation level..

spir denis.spir at free.fr
Fri Jan 16 12:54:28 CET 2009

Le Fri, 16 Jan 2009 09:11:06 +0530,
Senthil Kumaran <orsenthil at gmail.com> a écrit :

> >    they used a different spacing than you, is there a simple/good/smart
> >    way to get it all back to the 4 spacing default? Or if for example I
> Rule #0 is Never mix tabs and spaces.
> Rule #1 is use a standard spacing through out the code.
> And when copying from a certain space-setting indentation to another,
> the modular script will still work fine. You can use some global
> find/replace mechanism to do suit your setting.
> For eg. I remember doing :%s/\ \ /\ \ \ \ /g
The simplest method I guess is to first copy the code into a new file/doc/editor tab. Change there
to your personal indent width using whatever tool your editor provides, or by global
search/replace. Then only paste into your code.

la vida e estranya

More information about the Tutor mailing list