I frequently switch from working on my laptop to a school computer to a cluster machine Linux environment.
I get annoyed that code I write on Notepad++ on my laptop has different indents and spacing than the same code I open on my lab computer in Vim and vice versa.
For example, this code:
PetscInt xs,xw,ys,yw;
PetscReal lx,ly,dx,dy,dt,xp,yp;
PetscReal sim_time;
DM da,daKSP;
Vec gv,lv,bv,X,lX;
Becomes this code:
PetscInt xs,xw,ys,yw;
PetscReal lx,ly,dx,dy,dt,xp,yp;
PetscReal sim_time;
DM da,daKSP;
Vec gv,lv,bv,X,lX;
Is there a process I can adopt so that my code pretty much looks the same from computer to computer?
Thank you