Cannot reformat file not in project

The file that is not part of a project cannot be reformated. Is this by
design or a bug?

Honza


6 comments
Comment actions Permalink

This is by design.
The key idea that reformatting also involves shortening references and
optimizing using directives, which can't be done without project context

--
Eugene Pasynkov
Developer
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"
"Jan Muller" <muller@miracle.cz> wrote in message
news:e7ocbo$hhu$1@is.intellij.net...

The file that is not part of a project cannot be reformated. Is this by
design or a bug?

>

Honza

>



0
Comment actions Permalink

"Eugene Pasynkov (JetBrains)" <Eugene.Pasynkov@jetbrains.com> wrote in
message news:e7og2b$ac2$1@is.intellij.net...

This is by design.
The key idea that reformatting also involves shortening references and
optimizing using directives, which can't be done without project context


Ok, but what about files like .asmx files? The Reformat menu item doesn't
show up in the context menu on a .asmx file, nor a .asmx.cs file.

John

--
Eugene Pasynkov
Developer
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"
"Jan Muller" <muller@miracle.cz> wrote in message
news:e7ocbo$hhu$1@is.intellij.net...

>> The file that is not part of a project cannot be reformated. Is this by
>> design or a bug?
>>
>> Honza
>>
>>
>



0
Comment actions Permalink

John Saunders wrote:
>> This is by design.
>> The key idea that reformatting also involves shortening references and
>> optimizing using directives, which can't be done without project context


Ok, but what about files like .asmx files? The Reformat menu item doesn't
show up in the context menu on a .asmx file, nor a .asmx.cs file.


This sounds like the issue I reported in #25729

http://www.intellij.net/tracker/resharper/viewSCR?publicId=25729

Ciao,
Jens

--
http://www.jenswinter.com

0
Comment actions Permalink

Hello Jens,

I think there can indeed be a problem with placing the reformat command into
the context menu
for .asmx files, we'll check that. But you can use a shortcut assigned to
the ReSharperAddInXXXX.ReformatCode
command or alternatively use the ReSharper|Code|Reformat path from the VS
main menu.


Regards,
Dmitry Shaporenkov
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"

John Saunders wrote:

>>> This is by design.
>>> The key idea that reformatting also involves shortening references
>>> and
>>> optimizing using directives, which can't be done without project
>>> context
>> Ok, but what about files like .asmx files? The Reformat menu item
>> doesn't show up in the context menu on a .asmx file, nor a .asmx.cs
>> file.
>>

This sounds like the issue I reported in #25729

http://www.intellij.net/tracker/resharper/viewSCR?publicId=25729

Ciao,
Jens



0
Comment actions Permalink

"Jan Muller" <muller@miracle.cz> wrote in message
news:e7ocbo$hhu$1@is.intellij.net...

The file that is not part of a project cannot be reformated. Is this by
design or a bug?


And you can't ^W code that's not in a project, either. Annoying if you're
copying old code into a new project, as I was recently.

I'm not positive, but I believe you can't open non-project files from the ^E
list.

///ark


0
Comment actions Permalink

Hello Mark,

yes, we know about this issue. Thanks for noticing anyway.


I'm not positive, but I believe you can't open non-project files from
the ^E list.

///ark



0

Please sign in to leave a comment.