You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+12-16Lines changed: 12 additions & 16 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -26,7 +26,8 @@ This enables default editor features like syntax validation, highlighting and in
26
26
- quick fix inspections
27
27
- intentions (Alt+Enter), e.g. Quote/Unquote (all), Shift Column Left/Right
28
28
- structure view (header-entry layout)
29
-
- support for ',', ';', '|' and '↹' as value separator
29
+
- support for ',', ';', ':', '|' and '↹' as pre-defined value separator
30
+
- support for freely defined value separators
30
31
- highlight of active column values
31
32
- tab (↹) separator highlighting
32
33
@@ -59,13 +60,16 @@ Please note that if a document is syntactically incorrect, other features like c
59
60
CSV files provide a high degree of flexibility and can be used universally for all kind of data.
60
61
This led to a variety of CSV derivatives like semicolon or pipe separated values, which share the common format but make use of a different separator.
61
62
62
-
The plugin supports project specific separator setting.
63
-
New separators can be added fairly easy in the parser definition of the source code.
63
+
The plugin supports file-specific separator settings.
64
+
Predefined separators, like Comma (,), semicolon (;), colon (:), tab (↹) and pipe (|), come with a precompiled lexer providing the best performance for working with CSV.
65
+
66
+
Since version 2.11.0, this plugin additionally comes with a runtime lexer implementation to support freely chosen separator.
64
67
65
68
#### TSV/PSV
66
69
67
-
Comma (,), semicolon (;), tab (↹) and pipe (|) can be explicitly set as a separator for CSV files.
68
-
Additionally the file types TSV (Tab-Separated-Values) and PSV (Pipe-Separated-Values) were introduced as a kind of CSV language.
70
+
A different separator can be chosen for each CSV file.
71
+
72
+
Additionally, the file types TSV (Tab-Separated-Values) and PSV (Pipe-Separated-Values) were introduced as a kind of CSV language.
69
73
For TSV and PSV files the same formatter and code style settings are applied as for CSV itself, but the separator is considered to be a tab or a pipe respectively.
70
74
All functionality that is available for plain CSV files (inspections, intentions, structure view, etc.) can be used for TSV and PSV as well.
71
75
@@ -126,7 +130,7 @@ Enable zero-based column numbering. This affects the tooltip info of the text ed
126
130
127
131
##### Default Value Separator (CSV only)
128
132
129
-
The following separators are currently supported: **,** (Comma), **;** (Semicolon), **|** (Pipe) and **↹** (Tab)
133
+
The following separators are currently supported: **,** (Comma), **;** (Semicolon), **:** (Colon), **|** (Pipe) and **↹** (Tab)
130
134
131
135
_Default Value Separator_ defines which separator is used as standard for each newly opened CSV file. The separator character can be changed for each file individually in its editors context menu.
132
136
@@ -326,9 +330,10 @@ Annasusanna,Amsterdam, 1
326
330

327
331
328
332
The action to switch the value separator (or escape character) - *which is used for CSV syntax validation of a specific file* - is part of its editors context menu.
333
+
Since version 2.11.0, also custom separator setting is available via this action.
329
334
330
335
331
-
This action defines how the parser/validator/highlighter/etc. behaves. It does intentionally not change the file content.
336
+
**Please note:**This action defines how the parser/validator/highlighter/etc. behaves. It does intentionally not change the file content.
332
337
To be more precise: It **does not replace** previous separator/escape characters by new ones or adjust the escaped texts.
333
338
334
339
#### Adjust column widths (table editor only)
@@ -395,15 +400,6 @@ Besides source code contributions, feel free to open bug reports or just suggest
395
400
396
401
- zoom table-editor cells with Ctrl+Mouse Wheel @royqh1979
397
402
398
-
## FAQ
399
-
400
-
> Why can't I choose the separator freely?
401
-
402
-
Having clearly defined symbols enables the syntax parser and language lexer to do its job properly.
403
-
The code for those is generated during build time by using the [Grammar-Kit](https://github.com/JetBrains/Grammar-Kit).
404
-
Adding a new kind of separator during development is fairly easy (please feel free to request a new commonly used one) in comparison to the implementation effort and usefulness of a freely defined separator.
0 commit comments