search and replace

search and replace - replacing multiple words - Messages

#1 Posted: 1/20/2018 12:59:01 AM
smathfan1

smathfan1

3 likes in 9 posts.

Group: User

Hello friends. Is there a search/replace function in sMath Studio? Sometimes you decide to change a variable name from x to x1, for example. If there is a “search, replace all”, then you don’t have to do it one by one and it will save a lot of time.
#2 Posted: 1/20/2018 4:37:36 AM
Davide Carpi

Davide Carpi

1416 likes in 2873 posts.

Group: Moderator

In a region, you can use the F8 key an you'll be able to rename all local variables/functions at once.

Globally, you can do it with the Text Region Utilities plugin.

2018-01-20 08_36_27-SMath Studio - [Page1_].png
2018-01-20 08_36_54-SMath Studio - [Page1_].png
If you like my plugins please consider to support the program buying a license; for personal contributions to me: paypal.me/dcprojects
1 users liked this post
Andrey Ivashov 1/20/2018 10:13:00 AM
#3 Posted: 1/25/2018 2:19:50 AM
smathfan1

smathfan1

3 likes in 9 posts.

Group: User

Hello Davide,
Thank you very much for your help. I downloaded 2 files: TextRegionUtilities.csproj and TextRegionUtilities.sln. How do I install them in sMath? And how do I use them to “replace all”?
Thank you again friend.
#4 Posted: 1/25/2018 6:31:48 AM
Davide Carpi

Davide Carpi

1416 likes in 2873 posts.

Group: Moderator

In your Smath Studio, go to: Tools > Plugins... > [switch the top-right button: Local Storage > Online Gallery] and search the plugin, then double click it or click on the install button, that's all
If you like my plugins please consider to support the program buying a license; for personal contributions to me: paypal.me/dcprojects
#5 Posted: 2/27/2018 7:52:02 AM
oftheair

oftheair

0 likes in 5 posts.

Group: User

Quote


In your Smath Studio, go to: Tools > Plugins... > [switch the top-right button: Local Storage > Online Gallery] and search the plugin, then double click it or click on the install button, that's all Good



Dear mr. Carpi

When I have reached the Online Gallery according your instructions the notebook freezes completely. Only the cursor can be moved. A lot of windows can be opened but nothing can be executed. The notebook can only be switched off by swithing off the power. (Pushing the on/off switch during 5 seconds.)

SMathStudiodesktop.099.6622
Lenovo Ideapad 500
Linux Mint 18 Cinnamon


Best regards,
oftheair
#6 Posted: 2/27/2018 10:51:21 AM
Jean Giraud

Jean Giraud

983 likes in 6866 posts.

Group: User

The F8 method works top/bottom within program, but fails partially in many more instances,
just follow/watch what has been changed/replaced ... as you may have to do individually.
  • New Posts New Posts
  • No New Posts No New Posts