Comments (7)
For the first point, is that similar to issue #7? Press tab to align multi-line tag descriptions. Or, do you mean that when you enter in the variable type, the corresponding tags in nearby lines should readjust their spacing?
For the second point, perhaps a config variable to indicate the minimum space between the tag, type, and description?
from sublime-jsdocs.
nah, i think this is separate to #7. What I meant was the following behaviour:
/**
* @param {type} foo Description description description description
* @param {type} foo Description description description description
*/
now I edit the first parameter's type..
/**
* @param {number} foo Description description description description
* @param {type} foo Description description description description
*/
boo, out of alignment! How cool would it be if I got this instead:
/**
* @param {number} foo Description description description description
* @param {type} foo Description description description description
*/
what would be best is if no matter what you typed on each line (and no matter whether you were editing the name, type or description), the columns would adjust to keep everything in line. Bonus points if it can work for blocks you've already declared instead of just as you make them.
from sublime-jsdocs.
Yeah, ok I reckon I could figure something out here. For starters, I might try making it a manual command that you have to run yourself, then maybe add a config setting to enable 'realtime' alignment or some such. Sound good?
from sublime-jsdocs.
There is an issue with mixed tags, and how their "content" is supposed to align.
/**
* @param {Number} fooBarVar Description description description description
* @return {String} description description
*/
or
/**
* @param {Number} fooBarVar Description description description description
* @return {String} description description
*/
from sublime-jsdocs.
Hmm. I think my preference is usually the latter, but i guess it depends
on how you've implemented it as to which is easier to do. I don't think
it really makes much difference to the readability of the thing and I
don't think i'd mind either way, but I generally choose to leave no
space to maximise the line length of the return description.
to include wrapping in the aforementioned blocks:
/**
- @param {Number} fooBarVar Description description description
-
description description
- @return {String} description description description
-
*/
description description
On 9/12/2011 12:03 AM, Nick Fisher wrote:
There is an issue with mixed tags, and how their "content" is supposed to align.
/** * @param {Number} fooBarVar Description description description description * @return {String} description description */
or
/** * @param {Number} fooBarVar Description description description description * @return {String} description description */
Reply to this email directly or view it on GitHub:
#14 (comment)
No virus found in this message.
Checked by AVG - www.avg.com
Version: 2012.0.1873 / Virus Database: 2102/4673 - Release Date: 12/10/11
from sublime-jsdocs.
Looks like this issue is almost a year old now. I would just like to reiterate that I agree, and I think it would be awesome if this were implemented. Ideally it should be automatic, when one is editing, but it would still be ok, if I had to invoke it manually via key combination.
from sublime-jsdocs.
Pull requests welcome 😄
from sublime-jsdocs.
Related Issues (20)
- Override package
- SASS Variable not working
- Incorrect param tags due to trailing commas
- Perl Support
- User settings seemed to not work in Sublime(3154) HOT 3
- Support ES6 constructor syntax
- php7,unsupported variable type array with default value HOT 1
- Variable names are not recognized in Typescript
- SassDoc
- Undocumented config options
- @return added with no return statement in function
- Feture Request: Add auto comment on tag end in HTML
- Bulk DocBlock Generation for a file or folder
- PHP7.4 bool getting confused by boolean HOT 1
- PHP7.4 Return type not being detected HOT 1
- DockBlock can't support go language
- Feature: param name position setting
- Default value for jsdocs_decorate
- How to format {{datetime}} as 'YYYY-MM-DD HH: mm: ss'?
- why sublime 4.x function's doc has not contain @return
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-jsdocs.