Home Download Buy Blog Forum Support

Line.Reindent does not work for comments

Line.Reindent does not work for comments

Postby euchoreo on Fri Sep 20, 2013 10:33 pm

Line.Reindent does not seem to work for comments (at least in C\C++ code) Is there a way to fix this?
euchoreo
 
Posts: 15
Joined: Fri Aug 30, 2013 8:19 pm

Re: Line.Reindent does not work for comments

Postby euchoreo on Fri Sep 27, 2013 6:50 pm

Rephrase. How do you guys deal with this?

If I have some code

void helloWorld() {
int i;
/* comments*/
printf.....

}

Is there a hack to get the comments indented or at least get the print statement indented?

Also, how do I make it indent 4 characters instead of 2?
euchoreo
 
Posts: 15
Joined: Fri Aug 30, 2013 8:19 pm

Re: Line.Reindent does not work for comments

Postby mindlube on Thu Oct 17, 2013 11:05 pm

+1 to this question. I have just spent some time studying the sublime keymaps, and cant figure out why reindent ignores comments. (in javascript i where I noticed it) Compounding the issue: code lines below the comment get lined up with the comment, when re-indent is applied to them. So the end result is me having to always do manual indent/unindent-ing of comments.
mindlube
 
Posts: 35
Joined: Mon Feb 18, 2013 10:30 pm

Re: Line.Reindent does not work for comments

Postby LiivaneLord on Wed Dec 18, 2013 10:21 am

I test Sublime Text 3 and there reindent not working when big comment starting with /* and ending */ contains new lines.
LiivaneLord
 
Posts: 1
Joined: Sun Jul 15, 2012 9:20 pm

Re: Line.Reindent does not work for comments

Postby mrbubbles02 on Sat Feb 08, 2014 1:32 am

I can confirm this as well, ST3 build 3059.
mrbubbles02
 
Posts: 2
Joined: Sun Sep 29, 2013 7:39 pm


Return to Technical Support

Who is online

Users browsing this forum: Exabot [Bot], Google [Bot] and 19 guests