Author Topic: Extra whitespace inserted in functioncomment parameter lines  (Read 1564 times)

Zaphod

  • Community Member
  • Posts: 13
  • Hero Points: 2
Extra whitespace inserted in functioncomment parameter lines
« on: December 29, 2025, 10:28:01 PM »
I recently upgraded from 2019 (v24) to 2025 (v30).  I exported my settings from v24 and imported into v30.  When I invoke the "functioncomment" aliases, or the "/**" comment expansion in the C/C++ "Comments" section, I see extra whitespace in the "param" lines.  It appears that SE is trying to align whitespace after each parameter name and before the indent (tab) to allow for 6 character parameter names and have the tab characters all aligned.  The older SE version did not do this, and I have not yet found a setting to disable this extra whitespace.

For example, the alias is:
Quote
/*************************************************************************//**
 * @brief %\c
 *%\s
 * @param %\p%\i%\c%\u
 *%\s
 * @return %\r %\c%\v
 * @return None%\vn
 *
 * Detailed description goes here
 ************************************************************************** */

When expanded, the param lines look like this:

Code: [Select]
/***********************************************//**
 * @brief
 *
 * @param a     \t
 * @param bb    \t
 * @param ccc   \t
 * @param dddd  \t
 * @param eeeee \t

Here is my SE version info (no hotfixes applied):

SlickEdit Pro 2025 (v30.0.0.0 64-bit Qt5)

Serial number: xxxxxxx
Licensed number of users: Single user
License file: C:\ProgramData\slickedit\30\slickedit.lic

Build Date: October 18, 2025
Emulation: Brief

OS: Windows 11 x64
OS Version: 11.00.0 
Memory: 59% Load, 19086MB/32000MB Physical, 34835MB/36608MB Page File, 5644MB/134217727MB Virtual
Shell Information: C:\WINDOWS\system32\cmd.exe /q
Screen Size: 2560 x 1440 (0 0 2560 1440), 2560 x 1440 (2560 0 2560 1440), 2560 x 1440 (-6 -1440 2560 1440), 2560 x 1440 (2554 -1451 2560 1440)

Project Type: Gnuc
Language: .cpp (C/C++)
Encoding: ACP (1252)

Installation Directory: C:\Program Files\SlickEdit Pro 30.0.0\ (non-removable drive,NTFS,670149MB free)
Configuration Directory: C:\Users\xxxxxxxx\AppData\Local\SlickEdit\30.0.0\ (non-removable drive,NTFS,670149MB free)
Imported options from: 24.0.0.8
Spill File: C:\Users\xxxxx\AppData\Local\Temp\slkspill.xxxxxxx.33556 (non-removable drive,NTFS,670149MB free)

Clark

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 7128
  • Hero Points: 544
Re: Extra whitespace inserted in functioncomment parameter lines
« Reply #1 on: December 30, 2025, 12:42:27 AM »
Place your cursor inside a javadoc comment
Go to Document>Edit javadoc Comment
Click on the "Options..." button
Uncheck "Align parameter comments to longest parameter name"
Press OK

That should do the trick.