Desktop version

Main > Forum > Learning > 1C Junior Developer Course > Displaying Line Number Of Object Module Or Form Module

Forum

Search UsersRules
Displaying Line Number Of Object Module Or Form Module
#1
Just came
Points:: 0
Joined:: Oct 7, 2020

Hello, I didn't found what setting of displaying line number of codes of the Object Module or Form module in the 1C Enterprise platform.
Is there any settings/options for that like Visual Studio or Eclipse ide.  

I attached a picture about that.

Can you help me about this topic, please?

Profile
#2
Active user
Points:: 0
Joined:: May 8, 2013

1C:Enterprise Editor does not show all line numbers in a module. You can learn the current line number from the status line (right bottom corner of the editor). Why do you need to see all line number at the same time? What for?

Profile
#3
Just came
Points:: 0
Joined:: Oct 7, 2020

Hello, thanks for response,

However also,

Since it is a feature that exists in many modern editors, I think it is one of the motivations for me when writing code.
It would also be nice to have the artificial intelligence-based automatic code completion feature, which is also available in many modern editors. E.g; If we automatically complete the EndProcedure, EndIf, EndFunction parts when I press the Tab or Enter key while typing For, For Each, Procedure and if the cursor is inside the Procedure or Function statement, we can write code directly. It would be nice if we could see more clearly all the places in the code block where the name of the same variable, function or procedure is used when we click on a variable, function or procedure. Like this picture at below.

Profile
#4
Active user
Points:: 0
Joined:: May 8, 2013

All this features are supported by 1C:Enterprise Designer but turned off by default. This is what you need to do:

1. Turn on the Autoreplacement option from this menu: Tools \ Options \ Modules \ Edit \ Autoreplacement \ Enable.

2. Start typing a beginning of a keyword, then click Enter of Space. The designer will show you all text templates that start with this letters.

3. If there are more than one template fitting what you've typed, you will have to select what you need from the list.

4. If the template contains placeholders, you will be shown a dialog (see pic 3). Fill out the placeholders and click OK. The template will be added to your source code (see pic 4).

If there is a single no-placeholders template matching what you've typed, it will be added to the text right after you clicked Space.

You can edit existing templates and add your own templates from this interface (see pic 5).

Profile
#5
Just came
Points:: 0
Joined:: Oct 7, 2020

Ok, thanks for details response.

It is gratifying to be aware of the existence of these features.

And also I asked that It would be nice if we could see more clearly all the places in the code block where the name of the same variable, function or procedure is used when we click on a variable, function or procedure. Like this picture at below.

I would be very happy if this highlighting feature is also available.

Profile
#6
Just came
Points:: 0
Joined:: Nov 4, 2018

Günaydın,
I found a solution for highlighting via dark mode. For more information you can check here:
Dark mode guide


The setting and result is attached below.

Profile
#7
Just came
Points:: 0
Joined:: Oct 7, 2020

Hello Thien,

Thank you so much. I found its.

Tools > Options and then select Current identifier and click "..." color button at the right and set value of RGB codes 226, 230, 214 respectively. like at the below picture.

Profile
#8
Active user
Points:: 0
Joined:: May 8, 2013

Cool feature, Huseyin. Didn't know it myself. Thank you for the great question!

Profile
Subscribe
Users browsing this topic (guests: 1, registered: 0, hidden: 0)



© 1C LLC. All rights reserved
1C Company respects the privacy of our customers and visitors
to our Web-site.