• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

[DW 19] Code Editor Brackets: How to prevent a leading Tab after e.g. body or p?

Contributor ,
Mar 30, 2019 Mar 30, 2019

Copy link to clipboard

Copied

Hi.

Still I'm not used to the code editor Brackets.

Please, can you give me a hint how I can prevent a leading tab after an "enter" behind e.g. "<body>" or "<p>".

I couldn't find an option inside the preferences.

And please, how can I prevent Brackets from highlighting the start and the end tag, when you place the cursor directly in front of the end tag?

The default background color of that highlighting is very dominant (brown) and the cursor get's almost invisible.

Thanks.

Views

639

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Community Expert , Mar 31, 2019 Mar 31, 2019

Go to View > Code View Options > remove checkmark by Auto Indent.

Votes

Translate

Translate
Community Expert ,
Mar 31, 2019 Mar 31, 2019

Copy link to clipboard

Copied

Code formatting comes from Tag Library definitions you create in Preferences.  Once your code formatting is set-up the way you like it,  you may  Apply Source Formatting to remove indents.

CC-applySourceFormatting.jpg

Nancy O'Shea— Product User, Community Expert & Moderator
Alt-Web Design & Publishing ~ Web : Print : Graphics : Media

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Contributor ,
Mar 31, 2019 Mar 31, 2019

Copy link to clipboard

Copied

Thanks Nancy.

But of course I checke "Edit Tag Libraries" before I posted my question.

There is noch Option to prevent that Tab after "<body>"

An example in the code view ("|" = cursor) :

1. <body>|

2. When I press the enter key I get

<body>
⇥|


I tried all Option in the "Edit Tag Libraries" of the tag body. Not any of them prevents the Tab.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Mar 31, 2019 Mar 31, 2019

Copy link to clipboard

Copied

Go to View > Code View Options > remove checkmark by Auto Indent.

Nancy O'Shea— Product User, Community Expert & Moderator
Alt-Web Design & Publishing ~ Web : Print : Graphics : Media

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Contributor ,
Mar 31, 2019 Mar 31, 2019

Copy link to clipboard

Copied

Thank you!

That's the trick!

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Mar 31, 2019 Mar 31, 2019

Copy link to clipboard

Copied

LATEST

mistershortcut  wrote

how can I prevent Brackets Dreamweaver from highlighting the start and the end tag, when you place the cursor directly in front of the end tag?

DW's code editor is based on Brackets but it's not a full installation of Brackets.   Edit your Dreamweaver code theme's LESS file.  The style rules should be on or around  line 332  --  CodeMirror-matchingtag {  }

See this related discussion for more details.

Re: Dreamweaver highlighting when I insert cursor

Nancy O'Shea— Product User, Community Expert & Moderator
Alt-Web Design & Publishing ~ Web : Print : Graphics : Media

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines