[219] Multiline declaration formatting


BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hello, I've requested this before, but I think it won't hurt to ask this
again. I use the following style for method and variable declaration:

public Dictionary> GetADictionaryOfLists() { long variableName; ... return result; } As it stands today, every time R# formats something, I get the following: public Dictionary>]]>
GetADictionaryOfLists()
{
}

Note the tab before the method name.

Now, is there a way for me to configure R# or to change its behavior via
plugin, so I can retain my personal style?

Thanks,
Pablo
-


BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (MingW32)

iD8DBQFECziPvooSiBfQCSoRAneUAKDjijgxnzLzWcXFJd0HRsYV9QFTRwCdGbfu
K84mMa1r9nDwLDK4O1tuqeg=
=yI7a
-


END PGP SIGNATURE-----

3 comments
Comment actions Permalink

Now, is there a way for me to configure R# or to change its behavior
via plugin, so I can retain my personal style?


What do you mean by personal style? If you are referring to coding style
then there's an extensive set of formatting options available via R#'s Options
dialog...


0
Comment actions Permalink

BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Amir Kolsky wrote:
>> Now, is there a way for me to configure R# or to change its behavior
>> via plugin, so I can retain my personal style?


What do you mean by personal style? If you are referring to coding style
then there's an extensive set of formatting options available via R#'s
Options dialog...

Yes, I'm referring to personal style, but I couldn't find any option so
I can have accessibility return type and modifiers in one line, and the
name of a method in the next. The same goes for variable declaration
where I have the type in one line, and the name of the variable in the next:

ThisIsTheType
thisIsTheVariableName = new ThisIsTheType();

Is there an option I've not seen?

Thanks,
Pablo
-


BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (MingW32)

iD8DBQFEDGC6vooSiBfQCSoRAmtkAKDZEnMoDn8fpGrcTxOzGg+cgtUfyQCgsSrJ
y7pUz3K+3dr34hzohQnpbQs=
=wb0a
-


END PGP SIGNATURE-----

0
Comment actions Permalink

You can put corresponding feature requests into the Tracker. But, honestly,
this style seems to be a bit exotic and it has not too many chances to be
ever implemented.

Valentin Kipiatkov
Chief Scientist, Vice President of Product Development
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"

---BEGIN PGP SIGNED MESSAGE---
Hash: SHA1

Amir Kolsky wrote:

>>> Now, is there a way for me to configure R# or to change its behavior
>>> via plugin, so I can retain my personal style?
>>>
>> What do you mean by personal style? If you are referring to coding
>> style then there's an extensive set of formatting options available
>> via R#'s Options dialog...
>>

Yes, I'm referring to personal style, but I couldn't find any option
so I can have accessibility return type and modifiers in one line, and
the name of a method in the next. The same goes for variable
declaration where I have the type in one line, and the name of the
variable in the next:

ThisIsTheType
thisIsTheVariableName = new ThisIsTheType();
Is there an option I've not seen?

Thanks,
Pablo
---BEGIN PGP SIGNATURE---

>> Version: GnuPG v1.2.1 (MingW32)
>>
>> iD8DBQFEDGC6vooSiBfQCSoRAmtkAKDZEnMoDn8fpGrcTxOzGg+cgtUfyQCgsSrJ
>> y7pUz3K+3dr34hzohQnpbQs=
>> =wb0a

---END PGP SIGNATURE---



0

Please sign in to leave a comment.