Comments (5)
just wanted to make a note here that I have listed a lot of indentation engine info at https://forum.sublimetext.com/t/everything-you-n-ever-wanted-to-know-about-indentation-in-st3/26207 which we could pull into the undocs
from sublime-undocs.
stops it from changing the indentation as you type, though it still works with the
reindent
command
Ah, that could be it exactly (and would also make sense with their naming). Basically, batch*
patterns are only applied when reindenting blocks (i.e. multiple lines of code) while the normal patterns also apply when auto_indent
is true and a newline is inserted.
from sublime-undocs.
Also worth mentioning:
- highlightPairs - https://github.com/sublimehq/Packages/blob/e27e856bd90036c20793a79107cc32141efe78f1/XML/Miscellaneous.tmPreferences#L35-L57 (note: doesn't seem to have any affect in ST?)
- batchDecreaseIndentPattern - https://github.com/sublimehq/Packages/blob/e27e856bd90036c20793a79107cc32141efe78f1/HTML/Miscellaneous.tmPreferences#L15-L24
- batchIncreaseIndentPattern - https://github.com/sublimehq/Packages/blob/e27e856bd90036c20793a79107cc32141efe78f1/HTML/Miscellaneous.tmPreferences#L27-L35
- indentSquareBrackets - https://github.com/sublimehq/Packages/blob/e27e856bd90036c20793a79107cc32141efe78f1/JavaScript/JSON%20Indent.tmPreferences#L63-L64
- icon - https://github.com/gerardroche/Packages/blob/e7a8fb7621ed91e1e86b42161cba2a0e5301b478/C%2B%2B/file_type_c.tmPreferences#L9-L10
- indentParens - Packages/Default/Indentation Rules.tmPreferences#L15-16
from sublime-undocs.
I noticed a few of these settings, notably batch*IndentPattern
, but have no idea what they do compared to the non-batch version. Do you know?
The others should be simple enough to be mentioned, so thanks for the heads-up.
from sublime-undocs.
Unfortunately, I have absolutely no idea how the batch patterns differ from the "normal" ones... It doesn't seem to be a TextMate thing, because they are not mentioned here: https://manual.macromates.com/en/preferences_items.html
The only difference I have noticed, while experimenting with the indentation rules, is that changing decreaseIndentPattern
to batchDecreaseIndentPattern
and increaseIndentPattern
to batchIncreaseIndentPattern
stops it from changing the indentation as you type, though it still works with the reindent
command...
i.e. in HTML (which uses the batch rules), it doesn't change the indentation after typing Enter <div>
Enter or Enter </div>
Enter, but in XML (which doesn't use the batch rules), it does change the indentation. Confirmed by changing the tmPreferences file.
from sublime-undocs.
Related Issues (20)
- What's the font family of screenshot? HOT 3
- Document what is a folder name for Search in Files HOT 4
- Mention how to disable key binding with noop command HOT 1
- SSL cert issue HOT 2
- Documentation about the platform key in Menus documenation
- Incorrect menu entry given for New Plugin under ST3 HOT 1
- Project status? HOT 1
- Replace text on selection get deselected HOT 1
- Projects: Please add info about where projects are saved HOT 1
- Explain how to *use* packages HOT 1
- Incorrect PLIST example in "Comments" chapter HOT 3
- Back slash in Makefile is a line continuation.
- Site is down - domain expired, I think? HOT 11
- [Symbols] showInIndexedReferenceList is undocumented HOT 1
- Search Results use incorrect domain (docs.sublimetext.info) HOT 1
- Document built in commands to be view or window specific. HOT 1
- next text match highlight color on replace ((and find) next) is wrong HOT 1
- Provide some notes on customizing Command Palette
- docs.sublimetext.info is unavailable HOT 1
- exec argument hide_phantoms_only no longer works in ST4 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sublime-undocs.