anyedittools
anyedittools copied to clipboard
Replace TAB by SPACE while keeping the text allignment
I convert tab to space the allignement of my original file is not respected.
I understand that it convert all tab by x number of space regardless
of the real spacing produce by the tab. Here is an exemple:
i_cd : in std_logic_vector(1 downto 0); -- Avec le GS1575A
12123456 1123456
The tab spacing in this email is 6 but not all the tab containt 6 but
it is up to 6.
When it replace the tab by space between i_cd and the ":" i want the
replace by 8 space and not 12 because it containt two tab.
It is the same thing for the tab between ";" and "--" need to be
replace by 7 space and not 12.
Maybe it can be an option of respecting the original allignement of
the file when converting.
Original issue reported on code.google.com by [email protected]
on 13 Jul 2010 at 10:30
Original comment by iloveeclipse
on 17 Nov 2010 at 9:09
- Added labels: OpSys-All, Priority-Low, Type-Enhancement
- Removed labels: Priority-Medium, Type-Defect
Please if possible increase the priority.
Just replacing all tab characters to x spaces can be done with a very simple
editor (like the eclipse itself, just select one tab, copy, choose find/replace
and paste your tab and then you can replace all your tabs to something else...)
If you have doxygen comments after your C++ members (for example) the current
conversion method breaks all your indentation.
Original comment by [email protected]
on 17 Jul 2012 at 9:36
I do not plan to work on it due lack of free time, sorry. Patches are welcome.
Original comment by iloveeclipse
on 18 Jul 2012 at 6:56
If you would like to replace tabs to spaces in one file (or in a selection) in
Eclipse
(After you set-up Eclipse to use spaces instead of tabs)
1. Select the text or select all in the editor
2. Cut
3. Paste
Original comment by [email protected]
on 19 Jul 2012 at 6:42