How do I get the Intellij code autoformatter to keep parenthesis formatting the same as other?
Whenever I run the IntelliJ autoformatter - it converts this:
CMS_TEMPLATES = (
('template1.html', 'template1'),
('template2.html', 'template2'),
)
into this:
CMS_TEMPLATES = (
('template1.html', 'template1'),
('template2.html', 'template2'),
)
and instead of
urlpatterns = patterns('',
(r'^admin/', include(admin.site.urls)),
url(r'^', include('cms.urls')),
)
if settings.DEBUG:
urlpatterns = patterns('',
(r'^' + settings.MEDIA_URL.lstrip('/'), include('appmedia.urls')),
) + urlpatterns
I got this:
urlpatterns = patterns('',
(r'^admin/', include(admin.site.urls)),
url(r'^', include('cms.urls')),
)
if settings.DEBUG:
urlpatterns = patterns('',
(r'^' + settings.MEDIA_URL.lstrip('/'), include('appmedia.urls')),
) + urlpatterns
while the others statements (with {} or [] ) keeping correct formatting:
How can I stop it from doing that? Thnx.
请先登录再写评论。