|
-
Jul 9th, 2005, 07:32 PM
#1
stopping VS from automatically indenting code?
When you close a block of cose in C# using }, VS.NET automatically adjusts the indentation for all lines of code in that block. This annoying me, as I sometimes want to indent things manually. Is there any way to stop VS from automatically indenting code when you close a block of code?
hope it's clear
rate my posts if they help ya!
Extract thumbnail without reading the whole image file: (C# - VB)
Apply texture to bitmaps: (C# - VB)
Extended console library: (VB)
Save JPEG with a certain quality (image compression): (C# - VB )
VB.NET to C# conversion tips!!
-
Jul 9th, 2005, 10:04 PM
#2
Re: stopping VS from automatically indenting code?
In the editor.... Tools menu... Options.....
Text Editr -> All Languages -> Tabs.... Set to "None"
That will set it for all languages in VS.... or you can go to individual languages and set the tab option there.
Tg
-
Jul 9th, 2005, 10:37 PM
#3
Re: stopping VS from automatically indenting code?
no that's not what I meant. That removed auto-indenting completely. I just don't like the text being automatically re-indented when you close a block of code
rate my posts if they help ya!
Extract thumbnail without reading the whole image file: (C# - VB)
Apply texture to bitmaps: (C# - VB)
Extended console library: (VB)
Save JPEG with a certain quality (image compression): (C# - VB )
VB.NET to C# conversion tips!!
-
Jul 9th, 2005, 11:31 PM
#4
Re: stopping VS from automatically indenting code?
I always type the opening and closing braces first, and then fill in the code for that block, although not for the reason you want. You should find that this will allow you to indent your code however you like.
-
Jul 10th, 2005, 12:00 AM
#5
-
Jul 10th, 2005, 11:07 AM
#6
Re: stopping VS from automatically indenting code?
You can always write a plug-in for VS to do it. At work I have the Vissual Assist plug-in. I can't test now, but I am pretty sure you can do it with it. At least I can remeber that it adds the } automaticaly when you write a {, and on the right place too.
http://www.wholetomato.com/
- ØØ -
-
Jul 10th, 2005, 12:46 PM
#7
-
Jul 10th, 2005, 01:30 PM
#8
Re: stopping VS from automatically indenting code?
Yeah, that is why I have it at work and not here. But I really like it though. It isn't as easy to break as the Intely Sense in VS. And you can have costum syntax highlighting and so on and so on.
I think I will buy it for my home computer later this year. It is a pain in the ass not coding with it at home.....dangerous to be so dependendt by a tool...
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|