vscode-better-align icon indicating copy to clipboard operation
vscode-better-align copied to clipboard

Can't not varify the trailing comment in python "#"

Open Malibu351 opened this issue 2 years ago • 2 comments
trafficstars

Can't not varify the trailing comment in python "#" the trailing comment can be recognized when “//” cannot work our when “#” in python such like: 1697869730957 1697869730963

I really need this function in python! Thanks

Malibu351 avatar Oct 21 '23 06:10 Malibu351

Ditto, the description boasts "Allow align code in any language. Align code by any characters" but that's not true. ~I'm drafting a pull request to add aligning on any char~

EDIT: Nevermind this is more complex than I thought, maybe I'll try tomorrow

non-bin avatar Dec 20 '24 07:12 non-bin

2.5 years, and we still can't align on comments? Affects[^1]:

Hash mark: # (single or multiple, also affects #= , #* , /# , #| )
  • aap
  • ampl
  • ansible
  • apache
  • apachestyle
  • awk
  • bc
  • cairo
  • cfg
  • cl
  • cmake
  • coffeescript
  • conkyrc
  • crontab
  • cucumber
  • cython
  • dakota
  • debcontrol
  • debsources
  • desktop
  • dhcpd
  • diff
  • dockerfile
  • ebuild
  • ecd
  • eclass
  • elixir
  • elmfilt
  • ember-script
  • esmtprc
  • exim
  • expect
  • exports
  • fancy
  • fgl
  • fluent
  • fstab
  • fvwm
  • gdb
  • gdscript3
  • gentoo-conf-d
  • gentoo-env-d
  • gentoo-init-d
  • gentoo-make-conf
  • gentoo-package-keywords
  • gentoo-package-mask
  • gentoo-package-use
  • gitcommit
  • gitignore
  • gitrebase
  • gnuplot
  • groff
  • gtkrc
  • hb
  • hog
  • hostsaccess
  • htmlcheetah
  • htmlos
  • hxml
  • ia64
  • icon
  • inittab
  • jproperties
  • julia
  • kivy
  • ldif
  • lilo
  • lisp
  • lout
  • lss
  • lynx
  • mako
  • maple
  • meson
  • mips
  • mirah
  • mush
  • nginx
  • nimrod
  • nix
  • nsis
  • ntp
  • ora
  • paludis-use-conf
  • pcap
  • perl
  • pine
  • po
  • praat
  • privoxy
  • ps1
  • psf
  • ptcap
  • puppet
  • pyrex
  • python
  • racket
  • radiance
  • ratpoison
  • rego
  • remind
  • resolv
  • rib
  • robot
  • robots
  • rspec
  • ruby
  • scheme
  • scons
  • sdc
  • sed
  • sh
  • shader_test
  • sls
  • sm
  • snakemake
  • snippets
  • snnsnet
  • snnspat
  • snnsres
  • spec
  • squid
  • ss
  • sshconfig
  • sshdconfig
  • tcl
  • tf
  • tidy
  • tli
  • tmux
  • toml
  • tsscl
  • ttl
  • tup
  • upstart
  • vgrindefs
  • vrml
  • webmacro
  • wget
  • wml
  • xmath
  • yaml
  • r
  • renpy
  • velocity
Double Slash: a lot of these are here because while it handles //, it does not handle a space between the operator and the comment (// ) (// , {/* */}, (* *), * , /* )
  • acedb
  • actionscript
  • aml
  • asciidoc
  • asy
  • ats
  • bib
  • bind-named
  • c
  • calibre
  • cg
  • ch
  • clean
  • clipper
  • cocci
  • cpp
  • cs
  • cuda
  • cypher
  • d
  • dot
  • dylan
  • emblem
  • faust
  • fsharp
  • fx
  • glsl
  • go
  • groovy
  • h
  • haxe
  • hercules
  • hyphy
  • idl
  • ishd
  • jade
  • java
  • javacc
  • javascript
  • javascript.jquery
  • javascriptreact
  • json5
  • jsonc
  • jsonnet
  • kscript
  • less
  • lpc
  • mel
  • named
  • natural
  • objc
  • objcpp
  • objj
  • ooc
  • openroad
  • ox
  • pccts
  • pfmain
  • php
  • pike
  • pilrc
  • plm
  • pov
  • processing
  • proto
  • pug
  • rc
  • rust
  • sass
  • scala
  • scilab
  • scss
  • slice
  • specman
  • spectre
  • stan
  • stp
  • supercollider
  • swift
  • systemverilog
  • tads
  • teak
  • tsalt
  • typescript
  • typescriptreact
  • uc
  • vala
  • vera
  • verilog
  • verilog_systemverilog
  • vsejcl
  • xkb
  • zig
Tag Comments (' , <!-- -->, , <!--- --->, {# #}, , <! >, <dthml-comment> </dtml-comment>, , {% comment %} {% endcomment %}, {{!-- --}}, {{! }})
  • aspvbs
  • cf
  • django
  • docbk
  • dtml
  • eruby
  • genshi
  • gsp
  • handlebars
  • hbs
  • html
  • htmldjango
  • jinja
  • jsp
  • liquid
  • markdown
  • mason
  • mkd
  • mustache
  • pandoc
  • rmarkdown
  • sgmllnx
  • smil
  • wikipedia
  • xml
Dashes and Braces (--, (* *), {{-- --}}, -- --, {-- --}, {- -}, >--, >{- -}, /- -/, --[[ ]])
  • ada
  • ahdl
  • applescript
  • asn
  • blade
  • cabal
  • catalog
  • csp
  • eiffel
  • elm
  • gdmo
  • haskell
  • hive
  • idris
  • lace
  • laravel
  • lean
  • literal haskell
  • lua
  • mib
  • occam
  • sa
  • sather
  • sgmldecl
  • sqlforms
  • sqlj
  • vhdl
Semicolons (; , )
  • amiga
  • armasm
  • asm68k
  • asterisk
  • autoit
  • bindzone
  • clojure
  • def
  • dns
  • dosini
  • dracula
  • dsl
  • fasm
  • gitconfig
  • idlang
  • iss
  • jess
  • kix
  • llvm
  • masm
  • monk
  • nagios
  • nasm
  • ncf
  • newlisp
  • omnimark
  • pic
  • povini
  • rebol
  • registry
  • scsh
  • skill
  • smith
  • tags
  • tasm
  • winbatch
  • wvdial
  • z8a
  • ppwiz
  • autohotkey
  • lisp
  • racket
  • scheme
  • ss
  • asm
  • samba
  • ledger
Keywords (REM , C comment $, CVS: , % , comment ;, :: , GEEK_COMMENT: , dnl , @c , comment = ' ')
  • atlas
  • basic
  • cvs
  • dos-batch
  • geek
  • m4
  • opl
  • simula
  • texinfo
  • tssgm
Percents (% , %* *%, %{ %})
  • abc
  • asp
  • bbx
  • bst
  • erlang
  • ist
  • lilypond
  • lprolog
  • lytex
  • map
  • matlab
  • pdf
  • postscr
  • ppd
  • sile
  • slang
  • slrnrc
  • tex
  • texmf
  • txt2tags
  • virata
Quotes (' , { }, ." , .\" , " )
  • ave
  • elf
  • lscript
  • vb
  • spin
  • spin
  • mandoc
  • troff
  • nroff
  • st
  • vim
Exclamation Marks (! , !# )
  • apdl
  • factor
  • fortran
  • incar
  • inform
  • molpro
  • poscar
  • rgb
  • sqr
  • uc4
  • uil
  • vasp
  • xdefaults
  • xpm2
Dollar Signs ($! , $ )
  • dcl
  • master
  • model
  • nastran
  • patran
  • sinda
  • spice
  • tak
  • trasys
Brackets ((* *), { }, (: :), {* *}, {# #})
  • apdl
  • fortran
  • incar
  • inform
  • molpro
  • pascal
  • poscar
  • rgb
  • smarty
  • sqr
  • twig
  • uc4
  • uil
  • vasp
  • xdefaults
  • xpm2
  • xquery
Misc (// , :: , * , -* , -# , /! )
  • btm
  • caos
  • cterm
  • focexec
  • form
  • foxpro
  • gams
  • haml
  • hocon
  • minizinc
  • octave
  • plsql
  • prolog
  • sentinel
  • sicad
  • slim
  • snobol4
  • sql
  • terraform

[^1]:Comment categories and languages affected taken from gist.github.com/dk949/88b2652284234f723decaeb84db2576c

jacrys avatar Jul 07 '25 22:07 jacrys